Define new
#1

I want to define SetPlayerScore into SetPlayerLevel how to do that?
pawn Код:
error 017: undefined symbol "SetPlayerLevel"
Reply
#2

Try this:

PHP код:
forward SetPlayerLevel(playeridlevel)
public 
SetPlayerLevel(playeridlevel)
{
    
SetPlayerScore(playeridlevel);
    return 
1;

Reply
#3

pawn Код:
#define SetPlayerLevel(%1,%2) SetPlayerScore(%1, %2)
Hope that helps .
Reply
#4

Код:
public SetPlayerLevel(playerid, level)
{
   SetPlayerScore(playerid, level);
}
EDIT: NVM people are faster :S
Reply
#5

pawn Код:
#define SetPlayerLevel\
            SetPlayerScore
Lol to slow
Reply
#6

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)