"/makecop" is bugged!
#1

This is my /makecop

pawn Код:
if(strcmp(cmdtext, "/makecop", true) == 0)
            {
            new tmp[128];
            new idx;
            new giveplayerid;
            if(IsPlayerConnected(playerid))
            {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
            SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /makecop [playerid]");
            }
            if (IsPlayerConnected(giveplayerid))
            {
          if(giveplayerid != INVALID_PLAYER_ID)
          {
            CopMake(giveplayerid);
            SendClientMessage(giveplayerid, COLOR_BLUE, "You have been made a police officer. Changes will appear on next death.");
            }
            }
            }
            return 1;
            }
It makes playerid 0 a cop, no matter what i write
How do I fix this?
Reply


Messages In This Thread
"/makecop" is bugged! - by Chriham3 - 13.03.2010, 17:43
Re: "/makecop" is bugged! - by Deat_Itself - 13.03.2010, 18:07
Re: "/makecop" is bugged! - by Chriham3 - 13.03.2010, 18:12
Re: "/makecop" is bugged! - by Deat_Itself - 13.03.2010, 18:18
Re: "/makecop" is bugged! - by Chriham3 - 13.03.2010, 19:43

Forum Jump:


Users browsing this thread: 1 Guest(s)