error 010: invalid function or declaration
#6

Top script

Код:
#define	function%0(%1) forward%0(%1); public%0(%1)
And replace with code:

Код:
function OnPlayerCommandText(playerid,cmdtext[])
{
if(strcmp(cmd, "/racetrack", true) == 0) 
{
	SetPlayerInterior(playerid, 0);
	if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
		LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
		SetVehiclePos(GetPlayerVehicleID(playerid),-521.0,-3643.0,7.0);
		SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0);
	}
	else
	{
		SetPlayerPos(playerid,-521.0,-3643.0,7.0);
		SetPlayerFacingAngle(playerid,0.0);
	}
	return 1;
}
return 1;
}
Reply


Messages In This Thread
error 010: invalid function or declaration - by Ilias_ - 05.06.2017, 14:08
Re: error 010: invalid function or declaration - by skuller12 - 05.06.2017, 14:10
Re: error 010: invalid function or declaration - by Ilias_ - 05.06.2017, 14:13
Re: error 010: invalid function or declaration - by MrFantasy - 05.06.2017, 14:14
Re: error 010: invalid function or declaration - by Ilias_ - 05.06.2017, 14:15
Re: error 010: invalid function or declaration - by skuller12 - 05.06.2017, 14:15

Forum Jump:


Users browsing this thread: 2 Guest(s)