31.05.2015, 17:08
the bug comming from, i'am finding this with a manually methode ( remove the function and try ) and when i have remove this all work fine, and i'am remember that i have a problem with this system in this morning ( with -1 value ) , so how can i resolve this problem.
-1 = default faction value ( the player isn't in any faction ).
PHP код:
stock PlayerExpTheirFaction(playerid){
new factionid = APlayerData[playerid][Team];
if(factionid != -1)
{
Factions[factionid][factionExp]++;
Factions[factionid][Coffre] += 100;
return 1;
}
Faction_Save(factionid);
return 1;
}
pawn Код:
if(factionid != -1)