Warning
#1

Hi everybody i have warning i don't very understand here is the code with the warning

PHP код:
C:\Users\4neals\Desktop\Scripting\Test\gamemodes\UGRP.pwn(7440) : warning 213tag mismatch
C
:\Users\4neals\Desktop\Scripting\Test\gamemodes\UGRP.pwn(7440) : warning 202number of arguments does not match definition
C
:\Users\4neals\Desktop\Scripting\Test\gamemodes\UGRP.pwn(21431) : warning 219local variable "PlayerName" shadows a variable at a preceding level
new jailTimer[MAX_PLAYERS];
new 
jailed[MAX_PLAYERS];
CMD:jail(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin])
    {
        new 
string[128], cibleidtimereason[128], PlayerName[MAX_PLAYER_NAME], APlayerName[MAX_PLAYER_NAME];
        if(
sscanf(params,"dds",cibleid,time,reason)) return SendClientMessage(playerid, -1"USAGE: /jail [playerid] [time] [reason]");
        if (!
IsPlayerConnected(cibleid)) return SendClientMessage(playerid, -1"[ERROR]The Player is not connected.");
        if(
jailed[cibleid] == 1) return SendClientMessage(playerid, -1"[ERROR]The Player is already jailed.");
        
GetPlayerName(cibleidPlayerNamesizeof(PlayerName));
        
GetPlayerName(playeridAPlayerNamesizeof(APlayerName));
        
format(stringsizeof(string), "%s has been jailed for %d minutes; Reason: %s"PlayerNametimereason);
        
SendClientMessageToAll(-1string);
        
SetPlayerHealth(cibleid9999999999.0);
        
ResetPlayerWeapons(cibleid);
    }
    return 
1;
}
CMD:release(playerid,params[])
{
    if(
PlayerInfo[playerid][pAdmin])
    {
        new 
cibleid;
        if(
sscanf(params,"u",cibleid)) return SendClientMessage(playerid, -1"USAGE: /unjail [playerid]");
        if (!
IsPlayerConnected(cibleid)) return SendClientMessage(playerid, -1"[ERROR]The Player is not connected.");
        if(
jailed[cibleid] == 0) return SendClientMessage(playerid, -1"[ERROR]The Player is not jailed.");
        {
            
jailed[cibleid] = 0;
        }
        
SpawnPlayer(cibleid);
        
SetPlayerHealth(cibleid100);
        
KillTimer(jailTimer[cibleid]);
    }
    return 
1;

thanks if you help
Reply


Messages In This Thread
Warning - by Eymeric69 - 03.07.2016, 09:56
Re: Warning - by M26 - 03.07.2016, 09:59
Re: Warning - by Mencent - 03.07.2016, 09:59
Re: Warning - by Eymeric69 - 03.07.2016, 10:07
Re: Warning - by Mencent - 03.07.2016, 10:11
Re: Warning - by Eymeric69 - 03.07.2016, 10:16
Re: Warning - by Mencent - 03.07.2016, 10:16
Re: Warning - by Shinja - 03.07.2016, 15:11

Forum Jump:


Users browsing this thread: 1 Guest(s)