SA-MP Forums Archive
Car nos locker 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: Car nos locker ERROR (/showthread.php?tid=576833)



Car nos locker ERROR - Rodri99 - 07.06.2015

IllegalCarNitroIde(carmodel) {

new illegalvehs[29] = { 581, 523, 462, 521, 463, 522, 461, 448, 468, 586, 509, 481, 510, 472, 473, 493, 595, 484, 430, 453, 452, 446, 454, 590, 569, 537, 538, 570, 449 };

foreach(illegalvehs, I) { //line 553

if (carmodel == illegalvehs[I])
return true;

}

return false;
}

C:\Users\Rodri\Desktop\SDCTDM~RPx.pwn(553) : error 017: undefined symbol "illegalvehs@YSII_Ag"
C:\Users\Rodri\Desktop\SDCTDM~RPx.pwn(553) : error 017: undefined symbol "illegalvehs@YSII_Ag"
C:\Users\Rodri\Desktop\SDCTDM~RPx.pwn(553) : error 029: invalid expression, assumed zero
C:\Users\Rodri\Desktop\SDCTDM~RPx.pwn(553) : fatal error 107: too many error messages on one line

I got this error, how i can i solve it?
Thanks To all repliers
Rodrigo Dionigi.


Re: Car nos locker ERROR - GTLS - 07.06.2015

Quote:
Originally Posted by Rodri99
Посмотреть сообщение
IllegalCarNitroIde(carmodel) {

new illegalvehs[29] = { 581, 523, 462, 521, 463, 522, 461, 448, 468, 586, 509, 481, 510, 472, 473, 493, 595, 484, 430, 453, 452, 446, 454, 590, 569, 537, 538, 570, 449 };

foreach(illegalvehs, I) { //line 553

if (carmodel == illegalvehs[I])
return true;

}

return false;
}

C:\Users\Rodri\Desktop\SDCTDM~RPx.pwn(553) : error 017: undefined symbol "illegalvehs@YSII_Ag"
C:\Users\Rodri\Desktop\SDCTDM~RPx.pwn(553) : error 017: undefined symbol "illegalvehs@YSII_Ag"
C:\Users\Rodri\Desktop\SDCTDM~RPx.pwn(553) : error 029: invalid expression, assumed zero
C:\Users\Rodri\Desktop\SDCTDM~RPx.pwn(553) : fatal error 107: too many error messages on one line

I got this error, how i can i solve it?
Thanks To all repliers
Rodrigo Dionigi.
Try doing it with
Код:
new veh;
veh = GetVehicleModel(illeagalvehs);
rest is up to you!