SA-MP Forums Archive
Wont save factions - 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: Wont save factions (/showthread.php?tid=140656)



Wont save factions - WardenCS - 10.04.2010

Hello,i try to make factions save,that means that it will save players faction,but if i log out,it will put the Faction to 0

under onplayerdisconnect is:

Код:
		dini_IntSet(file, "Faction", PlayerInfo[playerid][Faction]);
any help?thanks


Re: Wont save factions - [HiC]TheKiller - 10.04.2010

Add

pawn Код:
printf("Faction:%d", PlayerInfo[playerid][Faction]);
If it returns the same which it probably will then you are not setting your faction right.


Re: Wont save factions - WardenCS - 10.04.2010

well i made something easy

Код:
  if(strcmp(cmdtext, "/ttr", true) == 0)
	{
	PlayerInfo[playerid][Faction] = 1;
	return 1;
	}
and if i use it,then i relog,then my faction is still same what it was


Re: Wont save factions - WardenCS - 10.04.2010

yeah i checked it,and no i wont change it to 0,oh and i changed the id to 3 in file,then went to IG,typed /ttr,i think it made it to 1,but if i relog,its still 3

and about the MYSQL,i dont know much about it so yeah,i dont know how to make it to MYSQL,someone cud help me with this little script to make it mysql...like seif_ or smth.. lol

EDIT:got another prob now..