SA-MP Forums Archive
Forward[REP++] - 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: Forward[REP++] (/showthread.php?tid=553939)



Forward[REP++] - nezo2001 - 01.01.2015

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 ++


Re: Forward[REP++] - rickisme - 01.01.2015

replace
house,id[],value[]
to
house,id,value[]


Re: Forward[REP++] - nezo2001 - 01.01.2015

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


Re: Forward[REP++] - nezo2001 - 01.01.2015

Ha ??


Re: Forward[REP++] - nezo2001 - 01.01.2015

Guys any 1 please with these errors ?!


Re: Forward[REP++] - Ryz - 01.01.2015

post codes of line 689-696


Re: Forward[REP++] - nezo2001 - 01.01.2015

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]); 



Re: Forward[REP++] - nezo2001 - 01.01.2015

Guys please help i want to finish the system


Re: Forward[REP++] - nezo2001 - 01.01.2015

Guys please anyone !!!!!


Re: Forward[REP++] - nezo2001 - 01.01.2015

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 ?