14.07.2011, 10:51
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
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