Forward[REP++]
#1

I have this forwarded public
PHP код:
forward LoadUser_data(playerid,name[],value[]);
public 
LoadUser_data(playerid,name[],value[])
{
    
INI_Int("Password",PlayerInfo[playerid][pPass]);
    
INI_Int("Cash",PlayerInfo[playerid][pCash]);
    
INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
    
INI_Int("Kills",PlayerInfo[playerid][pKills]);
    
INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
    
INI_Int("Skin",PlayerInfo[playerid][pSkin]);
    
INI_Int("Ban",PlayerInfo[playerid][pBan]);
    
INI_Int("Score",PlayerInfo[playerid][pScore]);
    
INI_Int("Police",PlayerInfo[playerid][pPolice]);
    
INI_Int("Freeze",PlayerInfo[playerid][pFreeze]);
    
INI_Int("Gange",PlayerInfo[playerid][pGang]);
    
    
return 
1;

I want to make like it but for house so i add this

PHP код:
forward LoadHouse(house,id[],value[]);
public 
LoadHouse(house,id[],value[])
{
    
INI_Int("Owner",HInfo[id][Owner]);
    
INI_Int("Owned",HInfo[id][Owned]);
    
INI_Int("Price",HInfo[id][Price]);
    
INI_Int("Float:XPos",HInfo[id][Float:XPos]);
    
INI_Int("Float:YPos",HInfo[id][Float:YPos]);
    
INI_Int("Float:ZPos",HInfo[id][Float:ZPos]);
    
INI_Int("VirtualWorld",HInfo[id][VirtualWorld]);
    
INI_Int("Text3D:HouseLabel",HInfo[id][Text3D:HouseLabel]);
    return 
1;

But i doesn't work
here is the enum of the house info
PHP код:
enum HouseInfo
{
    
Owner[24],
    
Owned,
    
Price,
    
Float:XPos,
    
Float:YPos,
    
Float:ZPos,
    
VirtualWorld,
    
Text3D:HouseLabel

And
PHP код:
new HInfo[MAX_HOUSES][HouseInfo]; 
Please Help !
ReP ++
Reply
#2

replace
house,id[],value[]
to
house,id,value[]
Reply
#3

Thank you first error gone but the second

PHP код:
D:\MyServer\Server\gamemodes\new.pwn(689) : error 017undefined symbol "name"
D:\MyServer\Server\gamemodes\new.pwn(690) : error 017undefined symbol "name"
D:\MyServer\Server\gamemodes\new.pwn(691) : error 017undefined symbol "name"
D:\MyServer\Server\gamemodes\new.pwn(692) : error 017undefined symbol "name"
D:\MyServer\Server\gamemodes\new.pwn(692) : warning 213tag mismatch
D
:\MyServer\Server\gamemodes\new.pwn(692) : warning 213tag mismatch
D
:\MyServer\Server\gamemodes\new.pwn(693) : error 017undefined symbol "name"
D:\MyServer\Server\gamemodes\new.pwn(693) : warning 213tag mismatch
D
:\MyServer\Server\gamemodes\new.pwn(693) : warning 213tag mismatch
D
:\MyServer\Server\gamemodes\new.pwn(694) : error 017undefined symbol "name"
D:\MyServer\Server\gamemodes\new.pwn(694) : warning 213tag mismatch
D
:\MyServer\Server\gamemodes\new.pwn(694) : warning 213tag mismatch
D
:\MyServer\Server\gamemodes\new.pwn(695) : error 017undefined symbol "name"
D:\MyServer\Server\gamemodes\new.pwn(696) : error 017undefined symbol "name" 
I don't care about the warnings by the way
Reply
#4

Ha ??
Reply
#5

Guys any 1 please with these errors ?!
Reply
#6

post codes of line 689-696
Reply
#7

PHP код:
    INI_Int("Owner",HInfo[id][Owner]);
    
INI_Int("Owned",HInfo[id][Owned]);
    
INI_Int("Price",HInfo[id][Price]);
    
INI_Int("Float:XPos",HInfo[id][Float:XPos]);
    
INI_Int("Float:YPos",HInfo[id][Float:YPos]);
    
INI_Int("Float:ZPos",HInfo[id][Float:ZPos]);
    
INI_Int("VirtualWorld",HInfo[id][VirtualWorld]);
    
INI_Int("Text3D:HouseLabel",HInfo[id][Text3D:HouseLabel]); 
Reply
#8

Guys please help i want to finish the system
Reply
#9

Guys please anyone !!!!!
Reply
#10

The problem is with the word inside the commented slash
PHP код:
forward LoadHouse(/////house/////,id,value[]);
public LoadHouse(/////house//////,id,value[])
{
    
INI_Int("Owner",HInfo[id][Owner]);
    
INI_Int("Owned",HInfo[id][Owned]);
    
INI_Int("Price",HInfo[id][Price]);
    
INI_Int("Float:XPos",HInfo[id][Float:XPos]);
    
INI_Int("Float:YPos",HInfo[id][Float:YPos]);
    
INI_Int("Float:ZPos",HInfo[id][Float:ZPos]);
    
INI_Int("VirtualWorld",HInfo[id][VirtualWorld]);
    
INI_Int("Text3D:HouseLabel",HInfo[id][Text3D:HouseLabel]);
    return 
1;

As this is my first time to forward a public alone what should i write ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)