SA-MP Forums Archive
Timer problem - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Timer problem (/showthread.php?tid=202676)



Timer problem - LZLo - 24.12.2010

Quote:

public DrugTimer()
{
SetPlayerWeather(i, 11);
ClearAnimations(i);
SendClientMessage(i, COLOR_ORANGE, "The marighuana got away :S");
}

i got error fr this codes
how can i fix it?


Re: Timer problem - Retardedwolf - 24.12.2010

pawn Код:
public drugTimer ( tPlayer )
{
    SetPlayerWeather    ( tPlayer, 11 );
    ClearAnimations     ( tPlayer );
    SendClientMessage   ( tPlayer, COLOR_ORANGE, "The mariguana got away :S" );
}
pawn Код:
SetTimerEx ( "drugTimer", TIMEHERE, false, "d", playerid );



Re: Timer problem - LZLo - 24.12.2010

thank you
but what is "this function heading differs from prototype"?


Re: Timer problem - Retardedwolf - 24.12.2010

pawn Код:
forward drugTimer ( tPlayer );



Re: Timer problem - LZLo - 24.12.2010

thank you and don't remember: Merry Christmas and happy New Year!