wanted level problem
#1

i am making wanted lvl system but not working.

PHP код:
                    new current_zone;
                    
current_zone Player_Zone[playerid];
                    new 
string[150], crimedesc;
                    
format(string,sizeof(string),"%s (%d) has just stolen a law enforcement vehicle at %s"GetName(playerid) ,playeridZoneNames[current_zone][zone_name]);
                    
CopRadio(BLUEstring);
                    
format(stringsizeof(string), "Committed A Crime: Law Enforcement Vehicle Theft%s - Wanted Level %d  - Arrestable"crimedescWantedLevelStars);
                    
SendClientMessage(playeridREDstring);
                    
SetPlayerWantedLevel(playeridGetPlayerWantedLevel(playerid) + 4);
                    return 
1
here is my stock:

PHP код:
stock CommitCrime(playeridlevelcrimedesc[]) {
    new 
string[128];
    
PlayerInfo[playerid][Wanted] = SetPlayerWanted(playeridPlayerInfo[playerid][Wanted] + level);
    
format(stringsizeof(string), "Committed a crime: %s (Wanted Level %d)"crimedesc);
    
SendClientMessage(playeridWHITEstring);
}
stock SetPlayerWanted(playeridlevel) {
    if (
level sizeof(WantedLevelStars)) level sizeof(WantedLevelStars);
    if (
level 0level 0;
    
PlayerInfo[playerid][Wanted] = level;
    
SetPlayerWantedLevel(playeridWantedLevelStars[level]);
    return 
level;

ingame they showing to me "Wanted Level 0 - Arrestable" and if player have 2 star and they get a cop car so show to player 6.
Reply


Messages In This Thread
wanted level problem - by pelani - 11.02.2013, 04:38
Re: wanted level problem - by pelani - 11.02.2013, 06:27
Re: wanted level problem - by antonio112 - 11.02.2013, 06:29
Re: wanted level problem - by pelani - 11.02.2013, 06:51
Re: wanted level problem - by denNorske - 11.02.2013, 07:17
Re: wanted level problem - by pelani - 11.02.2013, 07:34
Re: wanted level problem - by iggy1 - 11.02.2013, 07:51
Re: wanted level problem - by denNorske - 11.02.2013, 08:01
Re: wanted level problem - by pelani - 11.02.2013, 08:07
Re: wanted level problem - by pelani - 11.02.2013, 18:37

Forum Jump:


Users browsing this thread: 1 Guest(s)