23.09.2010, 19:19
hi, im getting this error O.o
and how can i make when he connects it reads from the file
OnPlayerDisconnect?
cause it saves his score then when he connects his score = read from the file
Quote:
|
C:\Users\james\Desktop\server2\gamemodes\gamemode. pwn(116) : error 001: expected token: ",", but found ";" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
Код:
public OnPlayerDisconnect(playerid, reason)
{
new plrIP[16];
new file[MAX_PLAYER_NAME+25], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
dini_Create(file);
format(file, sizeof(file), "mygamemode/users/%s.txt", name);
dini_IntSet(file, "Score", GetPlayerScore(playerid));
dini_IntSet(file, "IP", GetPlayerIp(playerid, plrIP, sizeof(plrIP));////error line!
return 1;
}
OnPlayerDisconnect?
cause it saves his score then when he connects his score = read from the file


)

: warning 202: number of arguments does not match definition