Bizz system error
#1

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
Reply
#2

help
Reply
#3

try that sir
PHP код:
public OnGameModeInit()
{
    new 
str[40];
    for(new 
idx 1idx sizeof(FirmaInformacije); idx++)// Kreira loop, koji ce ici kroz sve firme
    
{
        
format(strsizeof(str), FPATHidx);// Ovo ide u spremanje, koje smo napravili ranije
        
INI_ParseFile(str"sacuvajbiz_%s", .fExtra true, .extra idx );
        
FirmaInformacije[idx][fIkona] = CreateDynamicPickup(12721FirmaInformacije[idx][fUlazX], FirmaInformacije[idx][fUlazY], FirmaInformacije[idx][fUlazZ], FirmaInformacije[idx][fVW]); // Ovo ce automatski napravi pickup (ULAZ)
        
FirmaInformacije[idx][fIzvanIkone] = CreateDynamicPickup(12721FirmaInformacije[idx][fIzasaoX], FirmaInformacije[idx][fIzasaoY], FirmaInformacije[idx][fIzasaoZ], FirmaInformacije[idx][fUvw]); // Kreira pickup unutar interijera
    
}
    return 
1;

Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)