Whats the problem here?
#9

Thats code is an opposite in itself
pawn Код:
new level;
              level = strval(tmp); //gets the interger of the array tmp
              format(string, sizeof(string), "loadfs %s", level); //to try insert an integer as a string
pawn Код:
if (strcmp(cmd, "/loadfs", true) ==0 )
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 1337)
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                    return SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /loadfs [fs name]");
                format(string, sizeof(string), "loadfs %s", tmp);
                SendRconCommand(string);
            }
        }
        return true;
    }
Reply


Messages In This Thread
Whats the problem here? - by tomnidi - 08.07.2009, 13:31
Re: Whats the problem here? - by refshal - 08.07.2009, 13:39
Re: Whats the problem here? - by tomnidi - 08.07.2009, 14:09
Re: Whats the problem here? - by refshal - 08.07.2009, 14:15
Re: Whats the problem here? - by tomnidi - 08.07.2009, 14:21
Re: Whats the problem here? - by Correlli - 08.07.2009, 14:28
Re: Whats the problem here? - by tomnidi - 08.07.2009, 14:42
Re: Whats the problem here? - by Correlli - 08.07.2009, 14:44
Re: Whats the problem here? - by Nero_3D - 08.07.2009, 15:09
Re: Whats the problem here? - by tomnidi - 08.07.2009, 15:27

Forum Jump:


Users browsing this thread: 1 Guest(s)