• Welcome to Vice City Multiplayer.
 

plz script for flip car

Started by heton99, February 21, 2010, 08:28:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

heton99

Hello. I need script for flip car please help. (sry for me english)

thijn

#1

else if (strcmp(cmd, "flip", true) == 0) {
new Float:x, Float:y, Float:z;
GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
SetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
SendClientMessage(playerid, COLOR_GREEN, "Vehicle Flipped!");
return 1;
}


heton99

#2
i have compiler Error:
D:\Gta Vice City\gamemodes\stunt.pwn(305) : warning 219: local variable "x" shadows a variable at a preceding level
D:\Gta Vice City\gamemodes\stunt.pwn(305) : warning 219: local variable "y" shadows a variable at a preceding level
D:\Gta Vice City\gamemodes\stunt.pwn(305) : warning 219: local variable "z" shadows a variable at a preceding level
D:\Gta Vice City\gamemodes\stunt.pwn(307) : warning 202: number of arguments does not match definition
Pawn compiler 3.0.3367 Copyright (c) 1997-2005, ITB CompuPhase


4 Warnings.


please help :P

Boss


else if (strcmp(cmd, "flip", true) == 0) {
GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
SetVehiclePos(GetPlayerVehicleID(playerid), x, y, z, 0.0);
SendClientMessage(playerid, COLOR_GREEN, "Vehicle Flipped!");
return 1;
}