Jump to content
  • 0

Eroare :D /v


scr3ws0f7

Question

Pawno:

D:\RPG\gamemodes\RPGv2.pwn(2230) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2234) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2238) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2242) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2246) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2250) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2254) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2258) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2262) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2266) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2270) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2274) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2278) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2282) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2301) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2305) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2309) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2313) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2317) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2321) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2325) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2329) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2333) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2337) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2341) : error 017: undefined symbol "CreateVehicleEx"
D:\RPG\gamemodes\RPGv2.pwn(2345) : error 017: undefined symbol "CreateVehicleEx"

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


26 Errors.
cam asa arata :|
			if(listitem == 0) // Admiral
			{
				CreateVehicleEx(playerid,445, X,Y,Z+1, Angle, random(126), random(126), -1);

ma streseaza de cateva ore  :embarrassed: si nu'i dau de cap  pls help :(

<a href=http://devilone.ro>

devilone-banner.png</a>

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

acum i-ai dat de cap

stock CreateVehicleEx(playerid, modelid, Float:posX, Float:posY, Float:posZ, Float:angle, Colour1, Colour2, respawn_delay)
{
	new world = GetPlayerVirtualWorld(playerid);
	new interior = GetPlayerInterior(playerid);
	if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
		DestroyVehicle(GetPlayerVehicleID(playerid));
		GetPlayerPos(playerid, posX, posY, posZ);
		GetPlayerFacingAngle(playerid, angle);
		CurrentSpawnedVehicle[playerid] = CreateVehicle(modelid, posX, posY, posZ, angle, Colour1, Colour2, respawn_delay);
        LinkVehicleToInterior(CurrentSpawnedVehicle[playerid], interior);
		SetVehicleVirtualWorld(CurrentSpawnedVehicle[playerid], world);
		SetVehicleZAngle(CurrentSpawnedVehicle[playerid], angle);
		PutPlayerInVehicle(playerid, CurrentSpawnedVehicle[playerid], 0);
		SetPlayerInterior(playerid, interior);
	}
	if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
	{
	    if(IsVehicleOccupied(CurrentSpawnedVehicle[playerid])) {} else DestroyVehicle(CurrentSpawnedVehicle[playerid]);
		GetPlayerPos(playerid, posX, posY, posZ);
		GetPlayerFacingAngle(playerid, angle);
		CurrentSpawnedVehicle[playerid] = CreateVehicle(modelid, posX, posY, posZ, angle, Colour1, Colour2, respawn_delay);
		LinkVehicleToInterior(CurrentSpawnedVehicle[playerid], interior);
		SetVehicleVirtualWorld(CurrentSpawnedVehicle[playerid], world);
		SetVehicleZAngle(CurrentSpawnedVehicle[playerid], angle);
		PutPlayerInVehicle(playerid, CurrentSpawnedVehicle[playerid], 0);
		SetPlayerInterior(playerid, interior);
	}
	return 1;
}

  • www.LcsNet.org
  • 91.233.106.13:7777
  • www.Joc-Miniclip.info

Link to comment
Share on other sites

acum i-ai dat de cap

stock CreateVehicleEx(playerid, modelid, Float:posX, Float:posY, Float:posZ, Float:angle, Colour1, Colour2, respawn_delay)
{
	new world = GetPlayerVirtualWorld(playerid);
	new interior = GetPlayerInterior(playerid);
	if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
		DestroyVehicle(GetPlayerVehicleID(playerid));
		GetPlayerPos(playerid, posX, posY, posZ);
		GetPlayerFacingAngle(playerid, angle);
		CurrentSpawnedVehicle[playerid] = CreateVehicle(modelid, posX, posY, posZ, angle, Colour1, Colour2, respawn_delay);
        LinkVehicleToInterior(CurrentSpawnedVehicle[playerid], interior);
		SetVehicleVirtualWorld(CurrentSpawnedVehicle[playerid], world);
		SetVehicleZAngle(CurrentSpawnedVehicle[playerid], angle);
		PutPlayerInVehicle(playerid, CurrentSpawnedVehicle[playerid], 0);
		SetPlayerInterior(playerid, interior);
	}
	if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
	{
	    if(IsVehicleOccupied(CurrentSpawnedVehicle[playerid])) {} else DestroyVehicle(CurrentSpawnedVehicle[playerid]);
		GetPlayerPos(playerid, posX, posY, posZ);
		GetPlayerFacingAngle(playerid, angle);
		CurrentSpawnedVehicle[playerid] = CreateVehicle(modelid, posX, posY, posZ, angle, Colour1, Colour2, respawn_delay);
		LinkVehicleToInterior(CurrentSpawnedVehicle[playerid], interior);
		SetVehicleVirtualWorld(CurrentSpawnedVehicle[playerid], world);
		SetVehicleZAngle(CurrentSpawnedVehicle[playerid], angle);
		PutPlayerInVehicle(playerid, CurrentSpawnedVehicle[playerid], 0);
		SetPlayerInterior(playerid, interior);
	}
	return 1;
}

De fapt cred ca a uitat sa inchida o }. Incearca sa cauti unde ai uitat }.
Link to comment
Share on other sites

stuntman e aceeasi chestie ca la mn :))...hm ai bagat si

stock IsVehicleOcupied?...

si stock CreateVehicleEx...?in gm?

iar daca  le ai uitate cu atentie la dialog...si verifica daca nu ai uitat o } sau ceva..

daca nu le ai adaugale oriunde dar nu intr-un public

ex

public Branza()

{

...//nu aici cum ar veni le adaugi in afara

}

//aici exp

stock IsVehicleOccupied(vehicleid)
{
  	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(GetPlayerState(i) == PLAYER_STATE_DRIVER || GetPlayerState(i) == PLAYER_STATE_PASSENGER)
		{
			if(GetPlayerVehicleID(i) == vehicleid) return 1;
		}
	}
	return 0;
}

stock CreateVehicleEx(playerid, vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay)
{
	new world = GetPlayerVirtualWorld(playerid);
	new interior = GetPlayerInterior(playerid);
	if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
		DestroyVehicle(GetPlayerVehicleID(playerid));
		GetPlayerPos(playerid, x, y, z);
		GetPlayerFacingAngle(playerid, rotation);
		CurrentSpawnedVehicle[playerid] = CreateVehicle(vehicletype, x, y, z, rotation, color1, color2, respawn_delay);
        LinkVehicleToInterior(CurrentSpawnedVehicle[playerid], interior);
		SetVehicleVirtualWorld(CurrentSpawnedVehicle[playerid], world);
		SetVehicleZAngle(CurrentSpawnedVehicle[playerid], rotation);
		PutPlayerInVehicle(playerid, CurrentSpawnedVehicle[playerid], 0);
		SetPlayerInterior(playerid, interior);
	}
	if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
	{
	    if(IsVehicleOccupied(CurrentSpawnedVehicle[playerid])) {} else DestroyVehicle(CurrentSpawnedVehicle[playerid]);
		GetPlayerPos(playerid, x, y, z);
		GetPlayerFacingAngle(playerid, rotation);
		CurrentSpawnedVehicle[playerid] = CreateVehicle(vehicletype, x, y, z, rotation, color1, color2, respawn_delay);
		LinkVehicleToInterior(CurrentSpawnedVehicle[playerid], interior);
		SetVehicleVirtualWorld(CurrentSpawnedVehicle[playerid], world);
		SetVehicleZAngle(CurrentSpawnedVehicle[playerid], rotation);
		PutPlayerInVehicle(playerid, CurrentSpawnedVehicle[playerid], 0);
		SetPlayerInterior(playerid, interior);
	}
	return 1;
}

New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.