Raised This Month: $ Target: $400
 0% 

This is realy weird (?)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 03-18-2010 , 22:32   This is realy weird (?)
Reply With Quote #1

This compiles fine
PHP Code:
        if(get_distance_f(originlast) < 32.0)
        {
                return 
PLUGIN_CONTINUE
        

This give me error error 029: invalid expression, assumed zero
PHP Code:
        if(get_distance_f(originlast) < 32.0)
                return 
PLUGIN_CONTINUE 
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-18-2010 , 22:45   Re: This is realy weird (?)
Reply With Quote #2

Hmm. Show the whole containing function.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 03-18-2010 , 22:50   Re: This is realy weird (?)
Reply With Quote #3

PHP Code:
public client_PreThink(id)
{
        if(
id != g_Simon || !get_pcvar_num(gp_SimonSteps) || !is_user_alive(id) ||
                !(
entity_get_int(idEV_INT_flags) & FL_ONGROUND) || entity_get_int(idEV_ENT_groundentity))
                return 
PLUGIN_CONTINUE

        
static Float:origin[3]
        static 
Float:last[3]

        
entity_get_vector(idEV_VEC_originorigin)
        if(
get_distance_f(originlast) < 32.0)
        {
                return 
PLUGIN_CONTINUE
        
}

// and more code

__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-18-2010 , 23:36   Re: This is realy weird (?)
Reply With Quote #4

I've actually had this happen a few times. Never really gave it much thought. I saw that it happened in large functions more often than those with hardly anything in it.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 03-18-2010 , 23:41   Re: This is realy weird (?)
Reply With Quote #5

Both compile fine...
Next time when you get strange error, post whole code instead of short fragment.
__________________
Impossible is Nothing
Sylwester is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 03-19-2010 , 07:23   Re: This is realy weird (?)
Reply With Quote #6

Quote:
Originally Posted by Sylwester View Post
Both compile fine...
Next time when you get strange error, post whole code instead of short fragment.
I've done a lot of tests.

The sentence in my first post compiles fine in a single function plugin.
I don't matter if I must use brackets or not in that part of code.

I'm just posting the error in case someone had similar problems.

Thanks
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Reply


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 08:37.


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