AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   What is wrong? (https://forums.alliedmods.net/showthread.php?t=160114)

Artifact 06-25-2011 08:14

What is wrong?
 
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.


kotinha 06-25-2011 08:23

Re: What is wrong?
 
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 


Artifact 06-25-2011 08:27

Re: What is wrong?
 
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...

drekes 06-25-2011 09:13

Re: What is wrong?
 
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




All times are GMT -4. The time now is 23:28.

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