Bizz 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: Bizz system error (
/showthread.php?tid=616008)
Bizz system error -
Dejan12345 - 30.08.2016
hey guys i making bizz system but i get error on here
Код:
public OnGameModeInit()
{
new str[40];
{
for(new idx = 1; idx < sizeof(FirmaInformacije); idx++)// Kreira loop, koji ce ici kroz sve firme
format(str, sizeof(str), FPATH, idx);// Ovo ide u spremanje, koje smo napravili ranije
INI_ParseFile(str, "sacuvajbiz_%s", .fExtra = true, .extra = idx );
FirmaInformacije[idx][fIkona] = CreateDynamicPickup(1272, 1, FirmaInformacije[idx][fUlazX], FirmaInformacije[idx][fUlazY], FirmaInformacije[idx][fUlazZ], FirmaInformacije[idx][fVW]); // Ovo ce automatski napravi pickup (ULAZ)
FirmaInformacije[idx][fIzvanIkone] = CreateDynamicPickup(1272, 1, FirmaInformacije[idx][fIzasaoX], FirmaInformacije[idx][fIzasaoY], FirmaInformacije[idx][fIzasaoZ], FirmaInformacije[idx][fUvw]); // Kreira pickup unutar interijera
}
return 1;
}
errors
Код:
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\filterscripts\Firma.pwn(68) : error 017: undefined symbol "FirmaInformacije"
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\filterscripts\Firma.pwn(68) : error 036: empty statement
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\filterscripts\Firma.pwn(68) : error 017: undefined symbol "idx"
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\filterscripts\Firma.pwn(68) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
help
Re: Bizz system error -
Dejan12345 - 30.08.2016
help
Re: Bizz system error -
jlalt - 30.08.2016
try that sir
PHP код:
public OnGameModeInit()
{
new str[40];
for(new idx = 1; idx < sizeof(FirmaInformacije); idx++)// Kreira loop, koji ce ici kroz sve firme
{
format(str, sizeof(str), FPATH, idx);// Ovo ide u spremanje, koje smo napravili ranije
INI_ParseFile(str, "sacuvajbiz_%s", .fExtra = true, .extra = idx );
FirmaInformacije[idx][fIkona] = CreateDynamicPickup(1272, 1, FirmaInformacije[idx][fUlazX], FirmaInformacije[idx][fUlazY], FirmaInformacije[idx][fUlazZ], FirmaInformacije[idx][fVW]); // Ovo ce automatski napravi pickup (ULAZ)
FirmaInformacije[idx][fIzvanIkone] = CreateDynamicPickup(1272, 1, FirmaInformacije[idx][fIzasaoX], FirmaInformacije[idx][fIzasaoY], FirmaInformacije[idx][fIzasaoZ], FirmaInformacije[idx][fUvw]); // Kreira pickup unutar interijera
}
return 1;
}
Re: Bizz system error -
Sew_Sumi - 30.08.2016
This is the same error that you had with the command problem last week.
Don't put the str in the OnGameModeInit, you can put it at the top of the script, then it'll be global. Rather than having 10 different places that you define it, you can have it defined once.
But really though, learn to code rather than simply slapping script together hoping that it will work.