Weird wanted system issues
#1

Hello guys.
Today, I've started a new RPG gamemode, but I have 2 weird issues that I've never had before.

1.When I create a command to increase the wanted level for the player, it should save the Wanted Level into the player's account file.

For the save, under OnPlayerDisconnect i use :

PHP код:
SavedWantedLevel[playerid] =WantedLevel[playerid]; 
The command is :

PHP код:
dcmd_rec(playerid,params[])
{
    new 
ID;
    new 
lvl;
    new 
string[128];
    if(
sscanf(params,"ui",ID,lvl))
    {
        
SendClientMessage(playerid,COLOR_ERROR,"Utilisation: /rec (Pseudo/ID) (Niveau de recherche)");
        return 
1;
    }
    if(
IsSpawned[ID] == 0)
    {
        
format(string,sizeof(string),"Ce joueur doit кtre vivant pour pouvoir utiliser cette commande.",PlayerName(ID),ID);
        
SendClientMessage(playerid,COLOR_ERROR,string);
        return 
1;
    }
    if(!
IsPlayerConnected(ID))
    {
        
format(string,sizeof(string),"Ce joueur n'est pas connectй.",ID);
        
SendClientMessage(playerid,COLOR_ERROR,string);
        return 
1;
    }
    
IncreaseWantedLevel(ID,lvl);
    
WantedLevel[ID] =lvl;
    return 
1;

So normaly, it should save the WantedLevel, but It doesn't.

2. The second issue, is normaly that when the player's wanted level increase to 2, the player's color should be yellow, but it doesn't..

WEIRD..
Hope getting your answers as soon as possible.
Reply


Messages In This Thread
Weird wanted system issues - by KillerDVX - 19.03.2016, 01:19
Re: Weird wanted system issues - by SickAttack - 19.03.2016, 01:39
Re: Weird wanted system issues - by KillerDVX - 19.03.2016, 01:46
Re: Weird wanted system issues - by SickAttack - 19.03.2016, 01:48

Forum Jump:


Users browsing this thread: 1 Guest(s)