error 001: expected token: ";", but found "]" HELP PLEASE! - 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: error 001: expected token: ";", but found "]" HELP PLEASE! (
/showthread.php?tid=269947)
error 001: expected token: ";", but found "]" HELP PLEASE! -
Kevin_Jefferson - 18.07.2011
Hello i have in My Script some error and i donґt no how i must fix this Error this are the Errors:
I get the Errors:
Line: (12341) : error 029: invalid expression, assumed zero
Line: (12341) : warning 215: expression has no effect
Line: (12341) : error 001: expected token: ";", but found "]"
Line: (12341) : error 029: invalid expression, assumed zero
Line: (12341) : fatal error 107: too many error messages on one line
Код:
for(new o=0; o<700; o++)
{
if(Objekte[o][exist] == 1) <=====Line: 12341
{
b_DestroyObject(o);
}
}
//b_GameModeExit();
return 1;
}
public OnVehicleRespray(playerid,vehicleid,color1,color2)
{
for(new x = 0; x < MaxVeh; x++)
{
if (vehicleid == PlayerCar[playerid][x][CarId] && Dtc_PlayerHaveCar[playerid][x])
{
PlayerCar[playerid][x][CarC1] = color1;
PlayerCar[playerid][x][CarC2] = color2;
}
}
return 1;
}
public LetDoorsLocked()
{
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < 700; i++)
{
if(Dtc_Carlock[i])
{
SetVehicleParamsForPlayer(i,playerid,0,1);
why he do this?