AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to define variable (https://forums.alliedmods.net/showthread.php?t=173191)

wwzw 12-01-2011 19:47

How to define variable
 
Runtime error: see the code
PHP Code:

public sql_init()
{
   ......
   new 
Query[2048]
   ......
   
load_other()
   ......
}
load_other()
{
   ......
   new 
oQuery[2048]           //Error in this line
   
......


I modified the case, then no error:

PHP Code:

new Query[2048]
public 
sql_init()
{
   ......
 
   ......
   
load_other()
   ......
}
load_other()
{
   ......
 
   ......


Why? I can not define very variable?
Please advise!

fysiks 12-02-2011 00:11

Re: How to define variable
 
I think something else is causing the error. Show the WHOLE code.


All times are GMT -4. The time now is 08:25.

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