SA-MP Forums Archive
A little help please. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: A little help please. (/showthread.php?tid=365925)



A little help please. - TaLhA XIV - 04.08.2012

PHP код:
C:\Users\TaLhA XIV\Desktop\Pawno scripter\filterscripts\hello.pwn(49) : error 017undefined symbol "MAX_HOUSES"
C:\Users\TaLhA XIV\Desktop\Pawno scripter\filterscripts\hello.pwn(49) : error 009invalid array size (negativezero or out of bounds)
C:\Users\TaLhA XIV\Desktop\Pawno scripter\filterscripts\hello.pwn(112) : error 017undefined symbol "MAX_HOUSES"
C:\Users\TaLhA XIV\Desktop\Pawno scripter\filterscripts\hello.pwn(128) : warning 217loose indentation
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
3 Errors

The error line:

PHP код:
new HouseInfo[MAX_HOUSES][hInfo]; 
Please help.


Re: A little help please. - Skaizo - 04.08.2012

add this
pawn Код:
#define MAX_HOUSES 111 //edit the number what you want



Re: A little help please. - Misiur - 04.08.2012

You are lacking constant. Add somewhere at the top of script
pawn Код:
#define MAX_HOUSES 100



Re: A little help please. - DeathOnaStick - 04.08.2012

You forgot to define MAX_HOUSES.

like that:

pawn Код:
#define MAX_HOUSES 128