+rep for any help!
#1

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:
Код:
SetPlayergTeam(playerid, dini_Int(file, "Team"));
My SetPlayergTeam stock:
Код:
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];
Reply


Messages In This Thread
+rep for any help! - by ironmen - 19.07.2015, 07:44
Re: +rep for any help! - by mirou123 - 19.07.2015, 08:07
Re: +rep for any help! - by DaniceMcHarley - 19.07.2015, 09:31
AW: +rep for any help! - by Mencent - 19.07.2015, 09:33
Re: +rep for any help! - by ironmen - 19.07.2015, 12:17
Re: +rep for any help! - by mirou123 - 19.07.2015, 12:37
AW: +rep for any help! - by Mencent - 19.07.2015, 14:18

Forum Jump:


Users browsing this thread: 4 Guest(s)