Error - help.
#1

Код:
  if(strcmp(cmd, "/elite", true) == 0)
	{
	if (IsPlayerAdmin(playerid))
	{
 		new playa = ReturnUser(tmp);
		SetPlayerRank(playa,1);
		SendClientMessage(playa,NICESKY,"[ELITE FORCE] You are now a member of the elite forces.");
		return 1;
	}
	}
What the crap is wrong again?
error 017: undefined symbol "tmp"
Reply
#2

pawn Код:
if(!strcmp(cmdtext,"/elite",true,6))
    {
        if (IsPlayerAdmin(playerid))
        {
            if(!strlen(cmdtext[6])) return SendClientMessage(playerid, 0xFFFFFF00, "USAGE: /elite [playerid]");
            new playa = strval(cmdtext[10]);
            if(!IsPlayerConnected(playa)) SendClientMessage(playerid, 0xFFFFFF00, "That player isnt connected");
            SetPlayerRank(playa,1);
            SendClientMessage(playa,NICESKY,"[ELITE FORCE] You are now a member of the elite forces.");
            return 1;
        }
    }
Reply
#3

Yeah eh thanks, but I still get a error on the line with "new playa ="

error 035: argument type mismatch (argument 1)
Reply
#4

Ok i edited my first post, (i dont know how the ReturnUser function works).
Reply
#5

Up.. If I write the command, the whole server crashes.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)