Már megbocsáss,de ez jelenlegi állapotában sz*r-t se ment.
[pawn]
new File[128];
public OnPlayerConnect(playerid) {
format(File,128,\"%s.ini\",pName(playerid));
SetPlayerMoney(playerid,dini_Int(File,\"Penz\"));
SetPlayerScore(playerid,dini_Int(File,\"Score\"));
return 1;
}
public OnPlayerDisConnect(playerid,reason) {
format(File,128,\"%s.ini\",pName(playerid));
dini_IntSet(File,\"Penz\",GetPlayerMoney(playerid));
dini_IntSet(File,\"Score\",GetPlayerScore(playerid));
return 1;
}
stock pName(playerid) {
new name[24];
GetPlayerName(playerid,name,24);
return name;
}
[/pawn]
Nem teszteltem.