AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Why does it says there's a warning here? (https://forums.alliedmods.net/showthread.php?t=183978)

Bilal Pro 04-29-2012 07:20

Why does it says there's a warning here?
 
Hello there,

Does anyone notice a warning inside here?
PHP Code:

public LoadData(id)
{
    new 
AuthID[35]
    
get_user_authid(id,AuthID,34)
    
    new 
vaultkey[64],vaultdata[256]
    
format(vaultkey,63,"%s-Models",AuthID)
    
format(vaultdata,255,"%i#",HasKatana[id])
    
nvault_get(g_vault,vaultkey,vaultdata,255)
    
    
replace_all(vaultdata255"#"" ")
    
    new 
haskatana[32]
    
    
parse(vaultdatahaskatana31)
    
    
line (596HasKatana[id] = str_to_num(haskatana)
    
    return 
PLUGIN_CONTINUE


Warning at
PHP Code:

 HasKatana[id] = str_to_num(haskatana

Warning: Tag mismatch on line 596

NOTE: HasKatana[id] is a bool.

<VeCo> 04-29-2012 07:25

Re: Why does it says there's a warning here?
 
HasKatana[id] = bool:str_to_num(haskatana)

Bilal Pro 04-29-2012 07:26

Re: Why does it says there's a warning here?
 
Thanks <3


All times are GMT -4. The time now is 07:52.

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