[Ajuda] Salvar Score
#1

ALGUEM ME AJUDA AE TIPOW SALVA NA score.ini mais quando o player entra reseta o score dele pq ?olha ae cуdigo :
EM OnFilterScriptInit()
Quote:

if(!fexist("score.ini")) dini_Create("score.ini");

OnPlayerConnect:
Quote:

if(dini_Isset("score.ini",PlayerName(playerid)))

Quote:

SetPlayerScore(playerid,dini_Int("score.ini",Playe rName(playerid)));

OnPlayerDisconnect:
Код:
dini_IntSet("score.ini",PlayerName(playerid),GetPlayerScore(playerid));
OnFilterScriptExit():
Код:
Score[i] = GetPlayerScore(i);
ALGUEM ME AJUDA AE
Reply


Messages In This Thread
Salvar Score - by denis15711 - 03.07.2012, 15:48
Re: Salvar Score - by MarlonColhado - 03.07.2012, 16:09
AW: Salvar Score - by denis15711 - 03.07.2012, 16:33
Re: AW: Salvar Score - by MarlonColhado - 03.07.2012, 16:43
AW: Salvar Score - by denis15711 - 03.07.2012, 16:48
Re: Salvar Score - by humildadeforever - 03.07.2012, 16:51
AW: Salvar Score - by denis15711 - 03.07.2012, 18:18
Re: AW: Salvar Score - by steeldark - 03.07.2012, 19:55

Forum Jump:


Users browsing this thread: 1 Guest(s)