wanted level problem
#5

pawn Код:
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) ,playerid, ZoneNames[current_zone][zone_name]);
                    CopRadio(BLUE, string);
                    format(string, sizeof(string), "Committed A Crime: Law Enforcement Vehicle Theft%s - Wanted Level %d  - Arrestable", crimedesc, WantedLevelStars);
                    SendClientMessage(playerid, RED, string);
                    SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 4);
                    return 1;
Look at your code, your level is set After you send the message, so its still 0 when you send the message.

use
pawn Код:
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) ,playerid, ZoneNames[current_zone][zone_name]);
                    CopRadio(BLUE, string);
                    SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 4);
                    format(string, sizeof(string), "Committed A Crime: Law Enforcement Vehicle Theft%s - Wanted Level %d  - Arrestable", crimedesc, WantedLevelStars);
                    SendClientMessage(playerid, RED, string);
                   
                    return 1;
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)