Snippet crashes my server :/
#1

Hi! My code below crashes my server, why Please answer me, I'm waiting for your response )
pawn Код:
#include <a_samp>

public OnPlayerConnect(playerid)
{
new File:playerinfos, pntFinal[256], pntName[MAX_PLAYER_NAME+1], pntIp[16];
GetPlayerName(playerid,pntName,sizeof(pntName));
GetPlayerIp(playerid,pntIp,sizeof(pntIp));
format(pntFinal,sizeof(pntFinal),"Name: %s | ",pntName);
format(pntFinal,sizeof(pntFinal),"%sIP: %s | ",pntFinal,pntIp);
playerinfos = fopen("playerinfos.txt",io_write);
fwrite(playerinfos,pntFinal);
fclose(playerinfos);
return 1;
}
Reply


Messages In This Thread
Snippet crashes my server :/ - by BlackAtom - 17.09.2012, 18:18
Re: Snippet crashes my server :/ - by Glint - 17.09.2012, 18:22
Re: Snippet crashes my server :/ - by hittt - 17.09.2012, 18:23
Re: Snippet crashes my server :/ - by BlackAtom - 17.09.2012, 18:23
Re: Snippet crashes my server :/ - by AtItsMax - 17.09.2012, 18:24
Re: Snippet crashes my server :/ - by AndreT - 17.09.2012, 18:25

Forum Jump:


Users browsing this thread: 1 Guest(s)