something is wrong ?
#1

Код:
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier (3)\gamemodes\xD.pwn(3058) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier (3)\gamemodes\xD.pwn(3059) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier (3)\gamemodes\xD.pwn(3060) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier (3)\gamemodes\xD.pwn(3061) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
pawn Код:
SendClientMessage(playerid, RED,"Reason: %s", reason);
            SendClientMessage(playerid, RED,"Admin Name: %s", GetName(playerid));
            SendClientMessage(playerid, RED,"Your Name: %s", Playername);
            SendClientMessage(playerid, RED,"Admin Name: %s", Adminname);
Full:
pawn Код:
YCMD:ban(playerid,params[], help)
{
        if(P_Data[playerid][pAdmin] >= 2) {
        new PID; //define the playerid we wanna ban
        new reason; //the reason, put into a string
        new Playername[MAX_PLAYER_NAME], Adminname[MAX_PLAYER_NAME]; //defines the function with the playername we wanna get
        GetPlayerName(playerid, Adminname, sizeof(Adminname));
        GetPlayerName(PID, Playername, sizeof(Playername));
        if(sscanf(params, "us[64]", PID,reason)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /ban [playerid] [reason]"); //tell sscanf if the parameters/the syntax is written wrong to return a message (PID and the reason used here)

            if(!IsPlayerConnected(PID)) // if the ID is wrong or not connected, return a message! (PID used here)
            return
            SendClientMessage(playerid, COLOR_GREY, "Player is not connected!");
            SendClientMessage(playerid, RED,"=====================================================");
            SendClientMessage(playerid, RED,"You have been banned from this Server!");
            SendClientMessage(playerid, RED,"Reason: %s", reason);
            SendClientMessage(playerid, RED,"Admin Name: %s", GetName(playerid));
            SendClientMessage(playerid, RED,"Your Name: %s", Playername);
            SendClientMessage(playerid, RED,"Admin Name: %s", Adminname);
            SendClientMessage(playerid, RED,"=====================================================");
            SendClientMessage(playerid, RED,"if you have wroungfully banned or if you want to get a chance to play here again,please press F8 tp make screenhot and make apply in our Forum ");
            Ban(PID);
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "You have to be level 2 to use that command!"); //return this message
        }
        return 1;
    }
Help plz
Reply


Messages In This Thread
something is wrong ? - by AYOUYOU - 28.11.2014, 19:50
Re : something is wrong ? - by MCZOFT - 28.11.2014, 19:54
Re: something is wrong ? - by silenthill - 28.11.2014, 20:02
Re : something is wrong ? - by AYOUYOU - 28.11.2014, 20:03
Re: something is wrong ? - by mamorunl - 28.11.2014, 20:05
Re : something is wrong ? - by AYOUYOU - 28.11.2014, 20:22
Re: something is wrong ? - by mamorunl - 28.11.2014, 20:27
Re: Re : something is wrong ? - by DaniceMcHarley - 28.11.2014, 20:47
Re : something is wrong ? - by AYOUYOU - 28.11.2014, 21:05
Re: something is wrong ? - by xStunt - 28.11.2014, 21:42

Forum Jump:


Users browsing this thread: 1 Guest(s)