19.07.2015, 07:44
Hey!
I was making saving system for gTeam its saving but not loading well!
like if it saved Police officer it loads another thing!
like if i get in the game again after save and want to get in team vehicle i cant!!
please help me!
Thanks for any help!
+rep for any help!
This is my loading code OnPlayerconnect:
My SetPlayergTeam stock:
I was making saving system for gTeam its saving but not loading well!
like if it saved Police officer it loads another thing!
like if i get in the game again after save and want to get in team vehicle i cant!!
please help me!
Thanks for any help!
+rep for any help!
This is my loading code OnPlayerconnect:
Код:
SetPlayergTeam(playerid, dini_Int(file, "Team"));
Код:
stock SetPlayergTeam(playerid, teamid) { if(teamid == 1) { gTeam[playerid] = CIVILIAN; } if(teamid == 2) { gTeam[playerid] = POLICE; } if(teamid == 3) { gTeam[playerid] = PSD; } if(teamid == 4) { gTeam[playerid] = MECHANIC; } if(teamid == 5) { gTeam[playerid] = DOCK; } if(teamid == 6) { gTeam[playerid] = HITMAN; } if(teamid == 7) { gTeam[playerid] = MEDIC; } if(teamid == 8) { gTeam[playerid] = PILOT; } if(teamid == 9) { gTeam[playerid] = PILOT; } if(teamid == 10) { gTeam[playerid] = FIRE; } return gTeam[playerid];