SA-MP Forums Archive
Save New Ponto; - 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: Save New Ponto; (/showthread.php?tid=79207)



Save New Ponto; - epifanio - 26.05.2009

Quote:
Originally Posted by epifanio
Hello, Iґm Brazilian and have Gang War Server . . .

i have one system to save score without login and I create one Point System and dont have save system to save points

Score Save System

[red]OnGameModeInit[/red]
Quote:

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

[red]OnPlayerConnect[/red]
Quote:

if(dini_Isset("scores.ini",PlayerName(playerid))) SetPlayerScore(playerid,dini_Int("scores.ini",Play erName(playerid)));

[red]OnPlayerDisconnect[/red]
Quote:

dini_IntSet("scores.ini",PlayerName(playerid),GetP layerScore(playerid));

I need Save the points

Quote:

[blue]new[/blue] Ponto[MAX_PLAYERS];