SA-MP Forums Archive
/x Desvirar Carro - 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: /x Desvirar Carro (/showthread.php?tid=365077)



/x Desvirar Carro - Jodson - 01.08.2012

Eu Coloquei , o COD do /x e ta dando este erro ViDs nгo sei porque sabe me dizer oque й?




C:\Documents and Settings\AOC\Desktop\*\BLACKSHOT 3\REALLY LINE\gamemodes\GM.pwn(355) : error 021: symbol already defined: "VIDs"
C:\Documents and Settings\AOC\Desktop\*\BLACKSHOT 3\REALLY LINE\gamemodes\GM.pwn(353) : warning 203: symbol is never used: "VIDs"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.






COMANDO :





Код:
if(strcmp("/x", cmdtext, true, 10) == 0)
{
     if (!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xAA3333AA,"You are not in car!");
     new VIDs, Float:X, Float:Y, Float:Z, Float:Angle;
     GetPlayerPos(playerid, X, Y, Z);
     new VIDs = GetPlayerVIDs(playerid);
     GetVehicleZAngle(VIDs, Angle);
     SetVehiclePos(VIDs, X, Y, Z);
     SetVehicleZAngle(VIDs, Angle);
     SendClientMessage(playerid, 0x33AA33AA,"Vc desvirou seu carro");
     return 1;
}



Respuesta: /x Desvirar Carro - HarlemSAMP - 01.08.2012

Theres a section for portuguese language, this is an english only section


AW: /x Desvirar Carro - Forbidden - 01.08.2012

I cant speak prtuguese BUT :
Quote:

if(strcmp("/x", cmdtext, true, 10) == 0)
{
if (!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xAA3333AA,"You are not in car!");
new VIDs, Float:X, Float:Y, Float:Z, Float:Angle;
GetPlayerPos(playerid, X, Y, Z);
new VIDs = GetPlayerVIDs(playerid);
GetVehicleZAngle(VIDs, Angle);
SetVehiclePos(VIDs, X, Y, Z);
SetVehicleZAngle(VIDs, Angle);
SendClientMessage(playerid, 0x33AA33AA,"Vc desvirou seu carro");
return 1;
}

new VIDs, Float:X, Float:Y, Float:Z, Float:Angle;
new VIDs = GetPlayerVIDs(playerid);
Why ?
Use this :
Quote:

if(strcmp("/x", cmdtext, true, 10) == 0)
{
if (!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xAA3333AA,"You are not in car!");
new Float:X, Float:Y, Float:Z, Float:Angle;
GetPlayerPos(playerid, X, Y, Z);
new VIDs = GetPlayerVIDs(playerid);
GetVehicleZAngle(VIDs, Angle);
SetVehiclePos(VIDs, X, Y, Z);
SetVehicleZAngle(VIDs, Angle);
SendClientMessage(playerid, 0x33AA33AA,"Vc desvirou seu carro");
return 1;
}




Re: /x Desvirar Carro - Jodson - 01.08.2012

errror
Quote:

C:\Documents and Settings\AOC\Desktop\*\BLACKSHOT 3\REALLY LINE\gamemodes\GM.pwn(354) : error 017: undefined symbol "GetPlayerVIDs"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.




Re: /x Desvirar Carro - Jodson - 01.08.2012

thank you looks getplayervids I deleted it and compile earned


Re: /x Desvirar Carro - Jodson - 01.08.2012

Dear friends managed to compile but when the command / x type creates a car and comes to you WTF?