ZCMD helP!
#5

pawn Код:
CMD:setname(playerid, params[]) {
    new
        szUser,
        szNewName[MAX_PLAYER_NAME]
    ;
    if(PlayerInfo[playerid][Admin] >= 3) {
        if(!sscanf(params, "us[24]", szUser, szNewName)) {
            if(!IsPlayerConnected(szUser)) return SendClientMessage(playerid, 0xFF0000AA, "You are not an Admin!");
            return SetPlayerName(szUser, pName);
        }
        else return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /setname [playerid/partofname] [newname]");
    }
    else return SendClientMessage(playerid, 0xFF0000AA, "You are not an Admin!");
}
^Jack Wilson, you should read the SSCANF topic before fixing errors like this
Reply


Messages In This Thread
ZCMD helP! - by Sal - 05.03.2012, 05:58
Re: ZCMD helP! - by Sal - 05.03.2012, 06:05
Re: ZCMD helP! - by rangerxxll - 05.03.2012, 07:54
Re: ZCMD helP! - by Jack_Wilson - 05.03.2012, 07:56
Re: ZCMD helP! - by fordawinzz - 05.03.2012, 12:11

Forum Jump:


Users browsing this thread: 1 Guest(s)