12.05.2013, 01:37
I'm not quite sure if this is the problem, but it is bad practice to assign a numeric value as a command name, even in zcmd I don't think it handles it very well, maybe call the command
commands are also not case sensitive inside SA-MP, but it's best to leave them completely lowercase when creating them.
I also don't see where you've created the variable Loc, You don't need to make it globally scoped, I'd recommend just adding it at the top of the command.
Here:
Код:
CMD:twenty(playerid,params[]) { GetPlayer2DZone(playerid,Loc,sizeof(Loc)); new string[64]; format(string,sizeof(string),"My 10-20 is %s [Location]", Loc); SendPlayerMessageToAll(playerid,string); return 1; }
I also don't see where you've created the variable Loc, You don't need to make it globally scoped, I'd recommend just adding it at the top of the command.
Here:
pawn Код:
CMD:twenty(playerid,params[])
{
new Loc;
GetPlayer2DZone(playerid,Loc,sizeof(Loc));
new string[64];
format(string,sizeof(string),"My 10-20 is %s [Location]", Loc);
SendPlayerMessageToAll(playerid,string);
return 1;
}