Raised This Month: $ Target: $400
 0% 

What is wrong?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Artifact
Veteran Member
Join Date: Jul 2010
Old 06-25-2011 , 08:14   What is wrong?
Reply With Quote #1

PHP Code:
    set_task(get_pcvar_num(gAdvert), "Advert"___"b")  // Line 25
    
set_task(get_pcvar_num(gAdvert2), "Advert2"_,_,_"b")  // Line 26 
Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Warning: Tag mismatch on line 25
Warning: Tag mismatch on line 26
Header size:            708 bytes
Code size:             3256 bytes
Data size:             1616 bytes
Stack/heap size:      16384 bytes; max. usage is unknown, due to recursion
Total requirements:   21964 bytes

2 Warnings.
Done.
__________________
Artifact is offline
kotinha
Senior Member
Join Date: Jun 2009
Location: Alentejo, Portugal :)
Old 06-25-2011 , 08:23   Re: What is wrong?
Reply With Quote #2

try this:
PHP Code:
    set_task(float(get_pcvar_num(gAdvert)), "Advert"___"b")  // Line 25
    
set_task(float(get_pcvar_num(gAdvert2)), "Advert2"_,_,_"b")  // Line 26 
__________________
"If God exists, I hope he has a good excuse." - Woody Allen
kotinha is offline
Artifact
Veteran Member
Join Date: Jul 2010
Old 06-25-2011 , 08:27   Re: What is wrong?
Reply With Quote #3

Thanks but better is get_cvar_float ;)

Need one more help. What is there wrong?

PHP Code:
if(!cs_get_user_money(id) >= get_pcvar_num(g_Something)) 
Same tag mismatch...
__________________

Last edited by Artifact; 06-25-2011 at 08:29.
Artifact is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-25-2011 , 09:13   Re: What is wrong?
Reply With Quote #4

PHP Code:
if(cs_get_user_money(id) >= get_pcvar_num(g_Something))
{
    
// Has more or same amount of money
}

else
{
    
// Doesn't have enough money

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
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 23:28.


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