#1

PHP код:
enum HouseInfo
{
    
Items[24],
    
Amount[24],
    
Float:houseinvpos[3]
}
new 
HousesInfo[2][HouseInfo] = {
    {{
0,...},{0,...},{2456.0,-1774.6,13.5}},
    {{
0,...},{0,...},{2476.0,-1774.6,13.5}}
}; 
And compiler output:
Quote:

C:\SA MP\gamemodes\FB_LS.pwn(214) : error 029: invalid expression, assumed zero
C:\SA MP\gamemodes\FB_LS.pwn(216) : error 010: invalid function or declaration
C:\SA MP\gamemodes\FB_LS.pwn(14909) : warning 203: symbol is never used: ""
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Reply
#2

Код:
enum HouseInfo 
{ 
    Items[24], 
    Amount[24], 
    Float:houseinvpos[3] 
};

new HousesInfo[4][HouseInfo] = { 
    {"0,0,2456.0,-1774.6,13.5"}, 
    {"0,0,2476.0,-1774.6,13.5"} 
};
Reply
#3

The idea is to fill the houseinvpos with these (2456.0,-1774.6,13.5) numbers, and with this
PHP код:
new HousesInfo[4][HouseInfo] = { 
    {
"0,0,2456.0,-1774.6,13.5"}, 
    {
"0,0,2476.0,-1774.6,13.5"
}; 
I get zeros/
Reply
#4

Up. (And little addition to get more than 4 characters)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)