SA-MP Forums Archive
I need a bit of help ... - 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: I need a bit of help ... (/showthread.php?tid=134873)



I need a bit of help ... - MrIncredible - 17.03.2010

look i have made my login system to save the teams .. but i dont know how to make it that when the registered player comes again ......... he can only choose only the chosen team .... cmon guys help me with this .... i realy need this ...


Re: I need a bit of help ... - laser50 - 17.03.2010

Save his Team, then when he logges in, set that Team.


Re: I need a bit of help ... - MrIncredible - 17.03.2010

Quote:
Originally Posted by laser50
Save his Team, then when he logges in, set that Team.
well i saved his team ... and thats what i am askin how to set that exact team ?


Re: I need a bit of help ... - laser50 - 17.03.2010

Do you use Dini??


Re: I need a bit of help ... - MrIncredible - 17.03.2010

i dont know what i use .. i think dini ...and i have a include<dini> on top .....and i tried if that did anything by deleting it ... i compiled it and nothing .. i think nop


Re: I need a bit of help ... - laser50 - 17.03.2010

okay, at login, put down:

Код:
SetPlayerTeam(playerid, dini_Int(file, "Team"));
at /register:

Код:
dini_IntSet(file, "Team", GetPlayerMoney(playerid));
and at OnPlayerDisconnect:

Код:
dini_IntSet(file, "Team", GetPlayerMoney(playerid));



Re: I need a bit of help ... - MrIncredible - 17.03.2010

o0o i do use dini ..i have seen those there ....now thats not the way i save the team ...


Re: I need a bit of help ... - laser50 - 17.03.2010

show the way you save things


Re: I need a bit of help ... - MrIncredible - 17.03.2010

Код:
enum tinfo
{
  TeamPlayerName[MAX_PLAYER_NAME],
};
new TeamInfo[MAX_TEAM][tinfo];
i put this on gamemode init
Код:
strmid(TeamInfo[ TEAM_WEST ][TeamPlayerName], "West ", 0, strlen("West"), MAX_PLAYER_NAME);



Re: I need a bit of help ... - laser50 - 17.03.2010

sorry, i cannot help you then... as i have never seen this code...