House System Error - 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: House System Error (
/showthread.php?tid=522672)
House System Error -
[L]azy[H]aze - 28.06.2014
Hi, I tried to put my friends housing system into my gamemode and i got few errors im kinda stuck now .
Код:
C:\Users\Jata\Desktop\RCRP.pwn(120) : error 010: invalid function or declaration
C:\Users\Jata\Desktop\RCRP.pwn(123) : error 021: symbol already defined: "format"
C:\Users\Jata\Desktop\RCRP.pwn(124) : error 010: invalid function or declaration
C:\Users\Jata\Desktop\RCRP.pwn(126) : error 021: symbol already defined: "INI_ParseFile"
C:\Users\Jata\Desktop\RCRP.pwn(126) : error 017: undefined symbol "bExtra"
C:\Users\Jata\Desktop\RCRP.pwn(126) : error 054: unmatched closing brace ("}")
C:\Users\Jata\Desktop\RCRP.pwn(126 -- 128) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
7 Errors.
Код:
// Loading Houses
for(new i = 1; i < MAX_HOUSES; i++)
{
new gFile[35];
format(gFile, 35, HOUSE_PATH ,i);
if(fexist(gFile))
{
INI_ParseFile (gFile, "LoadHouse", .bExtra = true, .extra = i);
ReadHouse(i);
}
}
return 1;
}