SA-MP Forums Archive
i don't know whats wrong ? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: i don't know whats wrong ? (/showthread.php?tid=245495)



i don't know whats wrong ? - heroyou1221 - 31.03.2011

Quote:

C:\Users\Siim\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(5067) : error 017: undefined symbol "newscar"
C:\Users\Siim\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(5067) : error 036: empty statement
C:\Users\Siim\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(5067) : error 017: undefined symbol "i"
C:\Users\Siim\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(5067) : fatal error 107: too many error messages on one line

Quote:

public IsANewscar(carid)
{
for(new i = 0; i < sizeof(newscar); i++)
{
if(carid == newscar[i]) return 1;
}
return 0;
}

can some one help me i added forward IsANewscar(carid);


Re: i don't know whats wrong ? - iJumbo - 31.03.2011

try

pawn Код:
stock IsANewscar(vid)
{
    new r;
    new mo = GetVehicleModel(vid);
    switch(mo)
    {
        case put here news vehicle id like 100,100,100,100: r = mo;
        default: r = 0;
    }
    return r;
}