Timers gets mixed on each other
#1

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;
}
Reply
#2

Код:
format(ft, sizeof(ft),"Testing Timer :%d",robbz[playerid]-GetPVarInt(playerid, "robbingtime");
Reply
#3

already tried same thing happens
Reply
#4

can someone atleast show me what do i need to do so i can not mix up tow things ??
Reply
#5

First thing, new robbz; must be for MAX_PLAYERS, and then you must use what Gammix said
PHP код:
new robbz[MAX_PLAYERS]; 
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)