Help with params.
#1

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.

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;
    }
Thats the part im having problems with, the message i keep getting is "USAGE: savegz [name]"
Reply


Messages In This Thread
Help with params. - by Outbreak - 07.03.2009, 23:01
Re: Help with params. - by Nero_3D - 07.03.2009, 23:17
Re: Help with params. - by Outbreak - 08.03.2009, 11:16
Re: Help with params. - by Outbreak - 08.03.2009, 11:49
Re: Help with params. - by Outbreak - 08.03.2009, 11:58

Forum Jump:


Users browsing this thread: 1 Guest(s)