Flip car command
#1

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
Reply
#2

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;
}
Reply
#3

Still 26 errors
Reply
#4

while your leaving us to guess your errors could you post them?
Reply
#5

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
Reply
#6

Haha, that must suck ... you missed a bracket somewhere in your script ? haha
Reply
#7

Found it, added in a new helper system, and forgot like 3 brackets xD
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)