SA-MP Forums Archive
Error With Rent System - 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: Error With Rent System (/showthread.php?tid=373901)



Error With Rent System - ridho27 - 01.09.2012

eror code
Код:
D:\For The Server OFF GTA : error 028: invalid subscript (not an array or too many subscripts): "Rentbike"
D:\For The Server OFF GTA : warning 215: expression has no effect
D:\For The Server OFF GTA : error 001: expected token: ";", but found "]"
D:\For The Server OFF GTA : error 029: invalid expression, assumed zero
D:\For The Server OFF GTA: fatal error 107: too many error messages on one line
and pawn code
pawn Код:
IsARental(carid)
{
    for(new i = 0; i < sizeof(Rentbike); i++)
    {
        if(carid == Rentbike[i]) return 1;
    }
    return 0;
}
can someone help me?