getuser not working on pub

kerbiii

New member
Messages
342
Points
0
OnInit:waitingroom "PvP[" + getmapusers("guild_vs3.gat") + "/30",0;end;}


i have this on my npc but it doesnt show the right numbers of players on the map its always 0/30

 
Remove the file extension and I think it'll work c

Code:
waitingroom "PvP[" + getmapusers("guild_vs3") + "/30]",0;
 
Last edited by a moderator:
Remove the file extension and I think it'll work c

waitingroom "PvP[" + getmapusers("guild_vs3") + "/30]",0;
it worked, thanks!

EDIT: the pub doesnt change even when there's no player in the pvp room anymore

 
Last edited by a moderator:
You could use instead of this loop a initnpctimer and a label, but I think it's simpler this way:

Code:
OnInit:	waitingroom "PvP[" + getmapusers("guild_vs3") + "/30]",0;	while(1)	{		delwaitingroom strnpcinfo(3);		waitingroom "PvP[" + getmapusers("guild_vs3") + "/30]",0;		sleep 1000; //Update rate (ms)	}	end;
Haven't tested it, but I hope it works c:
 
You could use instead of this loop a initnpctimer and a label, but I think it's simpler this way:

OnInit: waitingroom "PvP[" + getmapusers("guild_vs3") + "/30]",0; while(1) { delwaitingroom strnpcinfo(3); waitingroom "PvP[" + getmapusers("guild_vs3") + "/30]",0; sleep 1000; //Update rate (ms) } end;Haven't tested it, but I hope it works c:
its not working the pub is always [0/30]

 
I just tested this code in Hercules' last revision and it's working fine, have you altered anything in it? You could post the snippet that you are using c:

 
I just tested this code in Hercules' last revision and it's working fine, have you altered anything in it? You could post the snippet that you are using c:
for got edit some line, its working now, does the sleep part really needed? because sometimes its giving the wrong numbers

 
Change it to :

sleep 100;

sleep is needed otherwise it will cause infinite loop
default_tongue.png


 
Last edited by a moderator:
Back
Top