Quote:
Originally Posted by DraKoN
@JatoDie
Use Macro
pawn Код:
#define PlayerExecute(playerid,%2) if(%2[0] == '/') OnPlayerText(playerid,%2)
|
I think this should be OnPlayerCommandText instead of OnPlayerText and %0 instead of %2.
Quote:
Originally Posted by [03]Garsino
more like:
pawn Код:
#define PlayerExecute(%0,%1) if(%1[0] == '\0') OnPlayerText(%0,%1)
?
|
The fist character is a string terminator? that would be an empty string.