Raised This Month: $ Target: $400
 0% 

Weird values when returning incremental


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 06-06-2014 , 17:48   Re: Weird values when returning incremental
Reply With Quote #2

I can confirm this, it seems broken.

PHP Code:
#include < amxmodx >

new g_Var1
new g_Var2

function1
( ) return g_Var1 --
function2( ) return -- g_Var2

public plugin_init() 
{
    
server_print"Test 1: %d"function1( ) )
    
server_print"Test 2: %d"function2( ) )

Code:
Test 1: 0
Test 2: 10

Last edited by Backstabnoob; 06-06-2014 at 17:55.
Backstabnoob is offline
 



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 09:46.


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