gTeam save on quit - 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)
+--- Thread: gTeam save on quit (
/showthread.php?tid=280536)
gTeam save on quit -
erik6060 - 01.09.2011
Hello.
I have a question.
I tried to do that, when you exit from server, the team is save to %s.ini file.
But it failed...
Код:
C:\Users\Gebhard\Downloads\samp03csvr_win32\gamemodes\varosielet.pwn(1900) : error 006: must be assigned to an array
1900th line:
pawn Код:
PlayerInfo[playerid][pGang] = dini_Get(file, "pGang");
What should I do to work?

Thanks..
Re: gTeam save on quit -
[MWR]Blood - 01.09.2011
To write anything to a file, you shouldn't use dini_get function.
Use dini_set.
Re: gTeam save on quit -
erik6060 - 01.09.2011
Oh. As I understand it, if you log in, setup the team you selected when you registered yet. Because now I do that when I login, you can also request to choose a team.
The need to save the team's on quit.
Sorry for bad english, i'm use ****** Translator...