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



Error - gabyk - 04.09.2011

I have these errors:


lines:
7573:
Код:
if(newstate == PLAYER_STATE_PASSENGER) // TAXI & BUSSES
12266:
Код:
for(new i = 0; i < sizeof(TurfInfo); i++)
16009:
Код:
AttachObjectToVehicle (VehRadarID [vehid], vehid, 0.2, 0.50, 0.3, 0.0, 0.0, 90.0);
16109:
Код:
if(strcmp(cmd, "/start", true) == 0)



Re: Error - Jafet_Macario - 04.09.2011

For 16009 get 0.3c includes, for anothers show more codes.You returned too early.


Re: Error - TheLazySloth - 04.09.2011

Some where above line 7573 you added an un-needed return.


Re: Error - gabyk - 04.09.2011

look like over the line 7573
Код:
			}
		}
		TelePos[playerid][0] = 0.0;
		TelePos[playerid][1] = 0.0;
	}
	{
	if ((oldstate == PLAYER_STATE_ONFOOT) && (newstate == PLAYER_STATE_PASSENGER || newstate == PLAYER_STATE_DRIVER))
	{
	     OldVehID [playerid] = GetPlayerVehicleID (playerid);
	}
	return 1;
}

7573:	if(newstate == PLAYER_STATE_PASSENGER) // TAXI & BUSSES
	{



Re: Error - TheLazySloth - 04.09.2011

It's too hard to tell with the section you've provided. Can you show from start to end on the function?