I need a bit of help ...
#1

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 ...
Reply
#2

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

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 ?
Reply
#4

Do you use Dini??
Reply
#5

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
Reply
#6

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));
Reply
#7

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

show the way you save things
Reply
#9

Код:
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);
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)