forward Pont(playerid);SetTimer(\"Pont\",1000*60*1,true);public Pont(playerid){for(new i=1;i<MAX_PLAYERS;i++){SetPlayerScore(playerid, GetPlayerScore(playerid)+1);}}
Kód: (pawn) [Kijelölés]forward Pont(playerid);public OnFilterScriptInit(){SetTimer(\"Pont\", 60000, 1);return 1;}public Pont(playerid){for(new i = 0; i < MAX_PLAYERS; i++){SetPlayerScore(playerid, GetPlayerScore(playerid)+1);}}
forward Pont(playerid);public OnFilterScriptInit(){SetTimer(\"Pont\", 60000, 1);return 1;}public Pont(playerid){for(new i = 0; i < MAX_PLAYERS; i++){SetPlayerScore(playerid, GetPlayerScore(playerid)+1);}}
\"Kicsit\" hibás Kód: (pawn) [Kijelölés]forward Pont(playerid);public OnFilterScriptInit(){SetTimer(\"Pont\", 60000, 1);return 1;}public Pont(playerid){for(new i = 0; i < MAX_PLAYERS; i++){SetPlayerScore(playerid, GetPlayerScore(playerid)+1);}}
forward Pont(playerid);public OnFilterScriptInit(){SetTimer(\"Pont\", 60000, 1);return 1;}public Pont(playerid){for(new i = 0; i < MAX_PLAYERS; i++){SetPlayerScore(i, GetPlayerScore(i)+1);}}
forward Pont(playerid);public OnFilterScriptInit(){SetTimer(\"Pont\", 60000, true);return 1;}public Pont(playerid){for(new i = 0; i < MAX_PLAYERS; i++){SetPlayerScore(i, GetPlayerScore(i)+1);}}
forward Pont(playerid);public OnFilterScriptInit(){SetTimer(\"Pont\", 60000, true);return 1;}public Pont(playerid){for(new i = 0; i < MAX_PLAYERS; i++){SetPlayerScore(i, GetPlayerScore(i)+1);}} utsó kommim ide,de ha ebben te látsz olyan hibát ami kihat a mûködésére szólj, és még ha tegyük fel a Pont eljárás playerid-ként csak 0-át kapna folyton akkor se befolyásolja a for ciklust mivel az a saját egyedi i változójával baromkodik és az i változik emiatt nem szükséges mégcsak az se hogy a eljárás megkapja a playerid-t, szóvaaal... :whistle:sry a féloffért mindenkinek,csak van amit nem bírok elviselni xDna vissza témához, rögtön letesztelem mennyire rossz is ez a verzió.addig meg byebi :smokin:
#include <a_samp>#include <dini> enum pAdat{score}new nev[MAX_PLAYER_NAME];new loc[100];new PlayerAdat[MAX_PLAYERS][pAdat];public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Score Saver 4 Chansee by RedDEV (founded by Red-Eye)\");print(\"--------------------------------------\\n\");return 1;}public OnFilterScriptExit(){return 1;} public OnPlayerConnect(playerid){GetPlayerName(playerid, nev, sizeof(nev)); format(loc, sizeof(loc), \"/scores/%s.ini\",nev); if(!dini_Exists(loc)){ dini_Create(loc); dini_IntSet(loc, \"Score\", 0); PlayerAdat[playerid][score] = dini_Int(loc, \"Score\"); }else{ PlayerAdat[playerid][score] = dini_Int(loc, \"Score\"); SetPlayerScore(playerid,PlayerAdat[playerid][score]); } return 1;}public OnPlayerDisconnect(playerid, reason){PlayerAdat[playerid][score] = GetPlayerScore(playerid); // <--- OTT xDGetPlayerName(playerid,nev,sizeof(nev));format(loc,sizeof(loc),\"/scores/%s.ini\",nev);if(!dini_Exists(loc)){dini_Create(loc);dini_IntSet(loc, \"Score\", 0);}else{dini_IntSet(loc,\"Score\",PlayerAdat[playerid][score]);}return 1;}