Raised This Month: $ Target: $400
 0% 

Functions what work fine in windows but crash in linux (research thread)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 06-21-2014 , 11:53   Functions what work fine in windows but crash in linux (research thread)
Reply With Quote #1

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(entid)
{
    if( 
g_needtoremove remove_entity(ent)

This will crash linux but not windows

Correct code:
PHP Code:
public fw_think(entid)
{
    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!

Last edited by .Dare Devil.; 06-22-2014 at 23:37.
.Dare Devil. is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode