AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Warning when compile! (https://forums.alliedmods.net/showthread.php?t=233448)

zeLentN 01-15-2014 06:25

Warning when compile!
 
Hello!

I get a warning when i compile, it reads as follows:

Code:

warning 224: indeterminate array size in "sizeof" expression (symbol "")

PHP Code:

static szNum[11]
for( new 
iItem 0iItem ItemsiItem++ )
{
    
strbreak(iDataszNumcharsmax(szNum), iDatacharsmax(iData)) // This Line
    
iItemLevel[iPlayer][iItem][CS_TEAM_T] = str_to_num(szNum)




I would be grateful for help.

Regards zeLentN

Arkshine 01-15-2014 07:04

Re: Warning when compile!
 
What is 'iData' ?

zeLentN 01-15-2014 07:09

Re: Warning when compile!
 
PHP Code:

new id iData[0

Btw, i got it work now.


All times are GMT -4. The time now is 10:11.

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