Posts: 561
Threads: 27
Joined: Sep 2012
Код:
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
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
A public function wouldn't give that error. Post the PUBLIC: macro.
Posts: 561
Threads: 27
Joined: Sep 2012
PHP код:
#define PUBLIC:%0(%1) forward %0(%1); \
public %0(%1)
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
The macro is correct. I can't seem to reproduce that error with your current code.
Posts: 561
Threads: 27
Joined: Sep 2012
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
Posts: 561
Threads: 27
Joined: Sep 2012
What should i do ?