Command Flip - 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: Command Flip (
/showthread.php?tid=454378)
Command Flip -
lsreskjn - 28.07.2013
Код:
if(IsPlayerInAnyVehicle(playerid))
{
if(newkeys & KEY_ANALOG_RIGHT)
{
if(IsPlayerInAnyVehicle(playerid))
{
new currentveh;
new Float:angle;
currentveh = GetPlayerVehicleID(playerid);
GetVehicleZAngle(currentveh, angle);
SetVehicleZAngle(currentveh, angle);
SendClientMessage(playerid, 0x800080FF, "[ Server ] Vozidlo prevratene.");
return 1;
}
else
{
SendClientMessage(playerid, 0x800080FF, "[ Server ] Nie si vo vozidle.");
return 1;
}
can someone make it right? it gives me like 236416 error.
Respuesta: Command Flip -
Xabi - 28.07.2013
You have missed 2 closing brackets.
Re: Command Flip -
Income - 28.07.2013
Try this:
pawn Код:
if(IsPlayerInAnyVehicle(playerid))
{
if(newkeys & KEY_ANALOG_RIGHT)
{
if(IsPlayerInAnyVehicle(playerid))
{
new currentveh;
new Float:angle;
currentveh = GetPlayerVehicleID(playerid);
GetVehicleZAngle(currentveh, angle);
SetVehicleZAngle(currentveh, angle);
SendClientMessage(playerid, 0x800080FF, "[ Server ] Vozidlo prevratene.");
}
else return SendClientMessage(playerid, 0x800080FF, "[ Server ] Nie si vo vozidle.");
}
return 1;
}