jail bug
#5

I moved this:
PHP код:
if(Jailed[id] == 1) return SendClientMessage(playerid, -1"{FF0000}[SYSTEM]: The player is already jailed"); 
after sscanf.


What is printing in the console here?
PHP код:
CMD:unjail(playeridparams[])
{
    
printf("Adminlevel: %i",pInfo[playerid][AdminLevel]);
    if(
pInfo[playerid][AdminLevel] < 1) return SendClientMessage(playerid, -1,"{FF0000}[SYSTEM ERROR]: You don't have the privilege to use that command.");
    {
           new 
idstring[128],admin[24], name[24];
           if(
pInfo[playerid][Logged] == 0) return SendClientMessage(playerid, -1"{FF0000}[SYSTEM[: {FFFFFF}You have to login before you can use commands !");
           if(
pInfo[playerid][AdminLevel] >= 1) return SendClientMessage(playerid, -1,"{FF0000}[SYSTEM ERROR]: You don't have the privilege to use that command.");
           if(
sscanf(params"d",id)) return SendClientMessage(playerid, -1"{FF0000}[SYSTEM ERROR]: {FFFFFF}USAGE: /unjail [id]");
           if(!
IsPlayerConnected(id)) return SendClientMessage(playerid, -1"{FF0000}[SYSTEM ERROR]: The ID you have inputted is incorrect");
           if(
Jailed[id] != 0) return SendClientMessage(playerid, -1"{FF0000}[SYSTEM]: The player is not jailed");
           
SetPlayerVirtualWorld(id0);
           
SetPlayerInterior(id0);
           
SetPlayerHealth(id100);
           
GivePlayerMoney(id, -800);
           
GivePlayerWeapon(id24,60);
           
SpawnPlayer(id);
           
GetPlayerName(playeridadmin,sizeof(admin));
           
GetPlayerName(idnamesizeof(name) ) ;
           
format(stringsizeof string"{FF0000}[SYSTEM]: {FFFFFF}%s has been released from jail by %s",nameadmin);
           
SendClientMessageToAll(-1string);
           
Jailed[id] = 0;
    }
    return 
1;

- Mencent
Reply


Messages In This Thread
jail bug - by Glossy42O - 24.07.2015, 19:59
AW: jail bug - by Mencent - 24.07.2015, 20:02
Re: AW: jail bug - by Glossy42O - 24.07.2015, 20:05
Re: jail bug - by XVlaDX - 24.07.2015, 20:06
AW: jail bug - by Mencent - 24.07.2015, 20:07
Re: jail bug - by xVIP3Rx - 24.07.2015, 20:07
Re: jail bug - by MBilal - 24.07.2015, 20:07
Re: AW: jail bug - by Glossy42O - 24.07.2015, 20:10
AW: jail bug - by Mencent - 24.07.2015, 20:11
Re: jail bug - by Glossy42O - 24.07.2015, 20:18

Forum Jump:


Users browsing this thread: 1 Guest(s)