Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: heton99 on February 21, 2010, 10:28:45 pm

Title: plz script for flip car
Post by: heton99 on February 21, 2010, 10:28:45 pm
Hello. I need script for flip car please help. (sry for me english)
Title: Re: plz script for flip car
Post by: thijn on February 21, 2010, 10:42:24 pm
Code: [Select]
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;
}
Title: Re: plz script for flip car
Post by: heton99 on February 21, 2010, 11:00:13 pm
i have compiler Error:
Code: [Select]
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
Title: Re: plz script for flip car
Post by: Boss on February 22, 2010, 12:28:50 am
Code: [Select]
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;
}