SA-MP Forums Archive
Wanted help! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Wanted help! (/showthread.php?tid=268921)



Wanted help! - nikai - 14.07.2011

Hello, i need help whit me Wanted Skript.
It never saves the Wanteds in the .ini files, and never save if someone relog.

Its a GF EDIT

if(killerid != INVALID_PLAYER_ID)
{
WantedPoints[playerid] += 1;
if(WantedPoints[playerid] = 1)
{
SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 1);
}
if(WantedPoints[playerid] = 2)
{
SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 2);
}
if(WantedPoints[playerid] = 3)
{
SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 3);
}
if(WantedPoints[playerid] = 4)
{
SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 4);
}
if(WantedPoints[playerid] = 5)
{
SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 5);
}
if(WantedPoints[playerid] = 6)
{
SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 6);
}

}

Please help