SetTimer 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)
+--- Thread: SetTimer problem! (
/showthread.php?tid=575160)
SetTimer problem! -
KillerDVX - 24.05.2015
Код:
SetTimerEx("AntiSpawnkill",5000,0,"d",playerid);
PUBLIC:AntiSpawnkill(playerid)
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid, 0xFF0000AA, "Vous pouvez tirer maintenant !");
return 1;
}
PHP код:
Undefined symbol "AntiSpawnkill"
PS : PUBLIC: = forward + public
Re: SetTimer problem! -
Konstantinos - 24.05.2015
A public function wouldn't give that error. Post the
PUBLIC: macro.
Re : SetTimer problem! -
KillerDVX - 24.05.2015
PHP код:
#define PUBLIC:%0(%1) forward %0(%1); \
public %0(%1)
Re: SetTimer problem! -
Konstantinos - 24.05.2015
The macro is correct. I can't seem to reproduce that error with your current code.
Re: SetTimer problem! -
FplayerGR - 24.05.2015
Код:
#define PUBLIC%0(%1) forward%0(%1); \
public%0(%1)
and use PUBLIC AntiSpawnkill(playerid){ //.... your code }
this work?
Re : Re: SetTimer problem! -
KillerDVX - 24.05.2015
Quote:
Originally Posted by FplayerGR
Код:
#define PUBLIC%0(%1) forward%0(%1); \
public%0(%1)
and use PUBLIC AntiSpawnkill(playerid){ //.... your code }
this work?
|
That what i did

Re: SetTimer problem! -
FplayerGR - 24.05.2015
i use this and working.
Re : SetTimer problem! -
KillerDVX - 24.05.2015
What should i do ?