13.04.2013, 14:52
full error generated by crash detect:
My OnPlayerconnect
I found out that without the parse file line it works. But what is wrong with it? It loads everything well, just causes that error
pawn Код:
[18:16:36] [debug] Run time error 6: "Invalid instruction"
[18:16:36] [debug] Unknown opcode 0x3902494 at address 0x00000038
[18:16:36] [debug] AMX backtrace:
[18:16:36] [debug] #0 00000038 in public OnPlayerConnect () from GangWars.amx
pawn Код:
public OnPlayerConnect(playerid)
{
new string[80];
GetPlayerName(playerid,Name,sizeof(Name));
if(fexist(GetPath(playerid)))
{
format(string,sizeof(string),"Sveiki sugrįћę %s, jūs automatiљkai buvote prijungtas",Name);
SendClientMessage(playerid,0xFFFF00FF,string);
INI_ParseFile(GetPath(playerid),"LoadStats_%s", .bExtra = true, .extra = playerid);
}
format(string,sizeof(string),"[Join] %s prisijungė į serverį",Name);
SendClientMessageToAll(0xFF00FFFF,string);
return 1;
}