Help with 2 things
#1

hi, im getting this error O.o
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;
}
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
Reply


Messages In This Thread
Help with 2 things - by FireCat - 23.09.2010, 19:19
Re: Help with 2 things - by DarrenReeder - 23.09.2010, 19:22
Re: Help with 2 things - by FireCat - 23.09.2010, 19:27
Re: Help with 2 things - by DarrenReeder - 23.09.2010, 19:31
Re: Help with 2 things - by FireCat - 23.09.2010, 19:35
Re: Help with 2 things - by DarrenReeder - 23.09.2010, 19:38
Re: Help with 2 things - by FireCat - 23.09.2010, 19:39
Re: Help with 2 things - by CAR - 23.09.2010, 19:42
Re: Help with 2 things - by DarrenReeder - 23.09.2010, 19:45
Re: Help with 2 things - by DarrenReeder - 23.09.2010, 19:47

Forum Jump:


Users browsing this thread: 2 Guest(s)