18.09.2012, 10:23
Did you put this code under any public functions??
NOTE: Commands when using ZCMD shouldn't be placed under any public functions, but in their own external space.
Example of a WRONG COMMAND PLACEMENT
Example of a CORRECT COMMAND PLACEMENT:
Look at how the Command is not actually residing inside any public function. It does not have to be between them, it can be placed anywhere as long as all definitions and includes have been defined before its use.
NOTE: Commands when using ZCMD shouldn't be placed under any public functions, but in their own external space.
Example of a WRONG COMMAND PLACEMENT
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
CMD:quitjob(playerid, params[])
{
return 1;
}
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
return 1;
}
CMD:quitjob(playerid, params[])
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}