Hello alliedmodders!
I thought i should post it somewhere else but all we do here is talk about scripting and functions so i hope i did the right thing.
I made a huge plugin what is working fine in windows but crash in linux.
So far i found out that using Ham_think
PHP Code:
public fw_think(ent, id)
{
if( g_needtoremove ) remove_entity(ent)
}
This will crash linux but not windows
Correct code:
PHP Code:
public fw_think(ent, id)
{
if( g_needtoremove )
{
remove_entity(ent)
return HAM_SUPERCEDE
}
return HAM_IGNORED
}
I also know that sending messages with wrong player id causes crash in linux.
Well, now i fixed everything in my code what i know.
There is still something i dont know and something still causes the crash.
My question here is that what else causes crash on linux but not in windows.
There cant be that many things.
Thanks!