Jump to content
  • 0

4 erorri


eXtreMe96

Question

D:\Ãîâàÿ ïàïêà (3)\filterscripts\vcar.pwn(101) : error 029: invalid expression, assumed zero
D:\Ãîâàÿ ïàïêà (3)\filterscripts\vcar.pwn(101) : error 029: invalid expression, assumed zero
D:\Ãîâàÿ ïàïêà (3)\filterscripts\vcar.pwn(101) : warning 215: expression has no effect
D:\Ãîâàÿ ïàïêà (3)\filterscripts\vcar.pwn(101) : error 001: expected token: ";", but found "]"
D:\Ãîâàÿ ïàïêà (3)\filterscripts\vcar.pwn(101) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
rindurile unde se afla eroarea
stock aCreateThing(playerid, thingid, orderid)
{
	new Float:X, Float:Y, Float:Z, Float:Angle;
	GetPlayerPos(playerid, X, Y, Z);
	GetPlayerFacingAngle(playerid, Angle);

	if(thingid != 597)
	{
[b]rindul 101[/b]	   Vehicle[orderid] = CreateVehicle(thingid, X, Y, Z + 3, Angle, random(126), random(126), 30);
	}
	else
	{
	     Vehicle[orderid] = CreateVehicle(thingid, X, Y, Z + 3, Angle, 0, 1, 30);
	}
	PutPlayerInVehicle(playerid, Vehicle[orderid], 0);
	TogglePlayerControllable(playerid, true);
	return 1;
}

GetVehicleWithinDistance(Float:x1, Float:y1, Float:z1, Float:dist, &veh) {
	new Float:x2, Float:y2, Float:z2, Float:d;
	for(new i = 1; i < MAX_VEHICLES; i++) {
		if(GetVehicleModel(i) > 0) {
			GetVehiclePos(i, x2, y2, z2);
			x2 -= x1; y2 -= y1; z2 -= z1;
			d = x2*x2 + y2*y2 + z2*z2;
			if(d < dist) {
				veh = i;
				dist = d;
			}
		}
	}
}
Float:GetRampDistance(playerid)
{
	new ping = GetPlayerPing(playerid), Float:dist;
	dist = floatpower(ping, 0.25);
	dist = dist*4.0;
	dist = dist+5.0;
	return dist;
}
Float:GetPosInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
{
	new Float:a;
	GetPlayerPos(playerid, x, y, a);
	if (IsPlayerInAnyVehicle(playerid)) GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
	else GetPlayerFacingAngle(playerid, a);
	x += (distance * floatsin(-a, degrees));
	y += (distance * floatcos(-a, degrees));
	return a;
}
IsVehicleRcTram(vehicleid) {
	switch(GetVehicleModel(vehicleid)) {
		case D_TRAM, RC_GOBLIN, RC_BARON, RC_BANDIT, RC_RAIDER, RC_TANK: return 1;
	}
	return 0;
}

Ma ajutati va rog sa le rezolv

lol

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

Uite care merge:

Pui la public OnPlayerConnect:

SetPVarInt(playerid,"CreatedVehicle", 0);
Si inlocuiesti aCreateThing al tau cu asta:
stock CarSpawnerName(playerid, thingid, orderid)
{
	#pragma unused orderid
	new Float:X, Float:Y, Float:Z, Float:Angle;
	GetPlayerPos(playerid, X, Y, Z);
	GetPlayerFacingAngle(playerid, Angle);
 	if(GetPVarInt(playerid,"CreatedVehicle") != 0) DestroyVehicle(GetPVarInt(playerid,"CreatedVehicle"));
	SetPVarInt(playerid,"CreatedVehicle", CreateVehicle(thingid, X, Y, Z + 3, Angle, -1, -1, 15));
	SetVehicleVirtualWorld(GetPVarInt(playerid,"CreatedVehicle"),GetPlayerVirtualWorld(playerid));
	PutPlayerInVehicle(playerid, GetPVarInt(playerid,"CreatedVehicle"), 0);
	SetVehicleNumberPlate(GetPlayerVehicleID(playerid),"Xtr-Z");
	new string[128];
	format(string, 128, "~w~%s spawned~n~id:~r~%d",VehicleName[GetVehicleModel(GetPlayerVehicleID(playerid))-400],thingid);
	GameTextForPlayer(playerid,string,5000,1);
	TogglePlayerControllable(playerid, true);
	return 1;
}

142sj0l.png

Underground-GFX

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.