SA-MP Forums Archive
online players trouble - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: online players trouble (/showthread.php?tid=375575)



online players trouble - micol - 07.09.2012

Hey !
I have a question, how can i do a online players textdraw with admins and vips ?
I have something like this:

Код:
new onlstring[128];
onlusr++;
format(onlstring, 128, "(~b~%d~w~/~r~%d~w~/~g~%d~w~)",onlusr,admin,vip);
TextDrawSetString(users, onlstring);
if(PlayerInfo[playerid][pAdminLevel] < 2);
{
admin++;
format(onlstring, 128, "(~b~%d~w~/~r~%d~w~/~g~%d~w~)",onlusr,admin,vip);
TextDrawSetString(users, onlstring);
}
if(PlayerInfo[playerid][pVIP] == 1);
{
vip++;
format(onlstring, 128, "(~b~%d~w~/~r~%d~w~/~g~%d~w~)",onlusr,admin,vip);
TextDrawSetString(users, onlstring);
}
(I know.. Very terrible code )
It doesn't work the way i wan't
When i enter the server as VIP = 1, the textdraw don't change, but when i connect as adminlvl 4 textdraw is changing....

What is wrong ?
Greeting, micol.

P.s: I'm using Y_ini