Author Topic: plz script for flip car  (Read 3064 times)

0 Members and 1 Guest are viewing this topic.

Offline heton99

  • Street Thug
  • *
  • Posts: 10
    • View Profile
plz script for flip car
« on: February 21, 2010, 10:28:45 pm »
Hello. I need script for flip car please help. (sry for me english)

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: plz script for flip car
« Reply #1 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;
}
« Last Edit: February 21, 2010, 10:51:25 pm by thijn »

Offline heton99

  • Street Thug
  • *
  • Posts: 10
    • View Profile
Re: plz script for flip car
« Reply #2 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
« Last Edit: February 22, 2010, 12:04:06 am by heton99 »

Offline Boss

  • VC:MP Beta Tester (inactive)
  • Made Man
  • *
  • Posts: 229
  • Boss
    • View Profile
    • TDH Clan Site
Re: plz script for flip car
« Reply #3 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;
}