07.03.2009, 23:01
I had this working earlier today, i tried doing it another way, that didnt work out, so i went back to the old way which was working.
Now though, the first time i use the command its fine, but the second time i use it im told im typing ir wrongly.
Thats the part im having problems with, the message i keep getting is "USAGE: savegz [name]"
Now though, the first time i use the command its fine, but the second time i use it im told im typing ir wrongly.
pawn Код:
dcmd_savegz(playerid,params[])
{
if(!IsPlayerAdmin(playerid)) return 0;
tmp = strtok(params, idx);
if(gzCreate[playerid] != 1) return SendClientMessage(playerid, COLOR_RED, "You aren't currently making a gangzone, use /gzcreate to start making one!");
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /savegz [name]");
return 1;
}