SetTimer problem!
#1

Код:
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
Reply
#2

A public function wouldn't give that error. Post the PUBLIC: macro.
Reply
#3

PHP код:
#define PUBLIC:%0(%1)                          forward %0(%1); \
                                            
public %0(%1
Reply
#4

The macro is correct. I can't seem to reproduce that error with your current code.
Reply
#5

Код:
#define PUBLIC%0(%1) forward%0(%1); \
public%0(%1)

and use PUBLIC AntiSpawnkill(playerid){ //.... your code }
this work?
Reply
#6

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
Reply
#7

i use this and working.
Reply
#8

What should i do ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)