Flip car command - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Flip car command (
/showthread.php?tid=238912)
Flip car command -
patfay - 12.03.2011
Okay, well I made a flip command, but I cant seem to get it to work.
Код:
command(flip, playerid, params[])
{
#pragma unused params
if(Player[playerid][AdminLevel] >= 3)
new
currentveh,
Float:angle;
currentveh = GetPlayerVehicleID(playerid);
GetVehicleZAngle(currentveh, angle);
SetVehicleZAngle(currentveh, angle);
SendClientMessage(playerid, WHITE, "Your vehicle has been flipped.");
return 1;
}
I'm figuring its missing a bracket, as I get 26 errors when compiling
Re: Flip car command -
[WF]Demon - 12.03.2011
pawn Код:
command(flip, playerid, params[])
{
#pragma unused params
if(Player[playerid][AdminLevel] >= 3)
{
new
currentveh,
Float:angle;
currentveh = GetPlayerVehicleID(playerid);
GetVehicleZAngle(currentveh, angle);
SetVehicleZAngle(currentveh, angle);
SendClientMessage(playerid, WHITE, "Your vehicle has been flipped.");
}
else
{
SendClientMessage(playerid, RED, "You must be level 3+ To use this!");
}
return 1;
}
Re: Flip car command -
patfay - 12.03.2011
Still 26 errors
Re: Flip car command -
Snowman12 - 12.03.2011
while your leaving us to guess your errors could you post them?
Re: Flip car command -
patfay - 12.03.2011
Uhh, NVM it wasn't the flip command, as I removed it and still get the errors, I'm missing a bracket somewhere in the script
Re: Flip car command -
antonio112 - 12.03.2011
Haha, that must suck ... you missed a bracket somewhere in your script ? haha
Re: Flip car command -
patfay - 12.03.2011
Found it, added in a new helper system, and forgot like 3 brackets xD