Snippet crashes my server :/
#3

pawn Код:
#include <a_samp>

public OnPlayerConnect(playerid)
{
new File:playerinfos, pntFinal[MAX_PLAYER_NAME+15+11], pntName[MAX_PLAYER_NAME], pntIp[15];
GetPlayerName(playerid,pntName,sizeof(pntName));
GetPlayerIp(playerid,pntIp,sizeof(pntIp));
format(pntFinal,sizeof(pntFinal),"Name: %s | IP: %s",pntName,pntIp);
playerinfos = fopen("playerinfos.txt",io_append);
if (playerinfos)
{
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)