01.12.2010, 16:38
When i choose an option it should start an timer, but it doesnt... anyone knows why?
Timer should every 2 seconds send a message "ROFLMAO BANANA!"
Timer should every 2 seconds send a message "ROFLMAO BANANA!"
pawn Код:
forward banana(playerid)
pawn Код:
public banana(playerid)
{
SendClientMessage(playerid,0xFF9900AA,"ROFLMAO BANANA!"); // this never happens
}
pawn Код:
new Menu:CurrentMenu3 = GetPlayerMenu(playerid);
if(CurrentMenu3 == flymenu)
{
switch(row)
{
case 0:
{
SetTimer("banana",2000,true);
SendClientMessage(playerid, 0xFFFF00AA, "banana"); // this works
}
}
return 1;
}
pawn Код:
flymenu = CreateMenu("Banaaananaaaaaaaaa", 0, 200.0, 100.0, 400.0, 300.0);
AddMenuItem(flymenu, 0, "Banana");