Timers gets mixed on each other - 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: Timers gets mixed on each other (
/showthread.php?tid=615396)
Timers gets mixed on each other -
ThatFag - 21.08.2016
hey there im testing something but when there are 2 or more players doing same thing that i do the timers gets mixed with each other how to split them up help me
this is my codes
Код:
new robbz;
COMMAND:testing(playerid , params[])
{
robbz[playerid] = dini_Int(tmpf, "bizcash") / 4000;
new ft[30];
format(ft, sizeof(ft),"Testing Timer :%d",robbz-GetPVarInt(playerid, "robbingtime");
PlayerTextDrawSetString(playerid, timerTD[playerid],ft);
return 1;
}
Re: Timers gets mixed on each other -
Gammix - 21.08.2016
Код:
format(ft, sizeof(ft),"Testing Timer :%d",robbz[playerid]-GetPVarInt(playerid, "robbingtime");
Re: Timers gets mixed on each other -
ThatFag - 21.08.2016
already tried same thing happens
Re: Timers gets mixed on each other -
ThatFag - 21.08.2016
can someone atleast show me what do i need to do so i can not mix up tow things ??
Re: Timers gets mixed on each other -
Shinja - 21.08.2016
First thing, new robbz; must be for MAX_PLAYERS, and then you must use what Gammix said
PHP код:
new robbz[MAX_PLAYERS];