06.03.2011, 06:38
I'm having trouble getting getting SetTimerEx working, have tried passing different variable in various formats, also have tried "i" "d" "a". The code below doesn't give me errors put doesn't work. The purpose of this is just a flag, to give players time to get out of a teleport pickup. Any help would be appreciated
forward ExitMessage(playerid); //,Businessleave[]);
Businessleave[playerid] = 1;
format(string, sizeof(string), " Businessleave variable = ~w~~y~.",Businessleave[playerid]);
GameTextForPlayer(playerid, string, 5500, 3);
SetTimerEx("exitMessage",5000,0,"i",playerid); //,Businessleave[playerid]);
Displays the string but Businessleave[playerid] not passing a variable, although appears to be working as enterpickups skipped
public ExitMessage(playerid) //,Businessleave[])
{
GameTextForPlayer(playerid, "~r~Timer Complete", 5000, 1);
Businessleave[playerid] = 0;
}
No display from the timer at all
forward ExitMessage(playerid); //,Businessleave[]);
Businessleave[playerid] = 1;
format(string, sizeof(string), " Businessleave variable = ~w~~y~.",Businessleave[playerid]);
GameTextForPlayer(playerid, string, 5500, 3);
SetTimerEx("exitMessage",5000,0,"i",playerid); //,Businessleave[playerid]);
Displays the string but Businessleave[playerid] not passing a variable, although appears to be working as enterpickups skipped
public ExitMessage(playerid) //,Businessleave[])
{
GameTextForPlayer(playerid, "~r~Timer Complete", 5000, 1);
Businessleave[playerid] = 0;
}
No display from the timer at all