[Ajuda] carheal
#1

Boas, eu gostava, tipo quando o carro tivese a deitar fumo preto quase a esplodir, nao desse pa pegar, mas eu uso o sistema de ligar veiculo aquele do 0.3c o /motoron alguem me ajuda ? agradeзo
Reply
#2

Search
Reply
#3

Nгo entendi o problema
Reply
#4

queria que os carros no meu server avaria-sem qquando deitam fumo
Reply
#5

pawn Код:
new Float:health;
    GetVehicleHealth(vehicleid, health);
    if(health == 280)
    {
        SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,0,0,0,0,0,0);          
        return 1;
    }
]

Quando o health do veнculo chegar а 280, o veнculo desliga. Equivalente ao /motoroff.
Reply
#6

onde meto isso ? looooool
Reply
#7

Nгo Entendi oq Tu Falou.

TuretOo c For Aquilo. Coloca Na Parte Dos new Ou seja no topo do gm
Reply
#8

Vocк nao ta presevendo

meto o new Float:health; no topo e isto onde meto
Код:
GetVehicleHealth(vehicleid, health);
    if(health == 280)
    {
        SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,0,0,0,0,0,0);
        return 1;
    }
Reply
#9

Dentro de
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
Reply
#10

aparece estes erros
Код:
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2088) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2165) : error 010: invalid function or declaration
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2168) : error 010: invalid function or declaration
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2171) : error 055: start of function body without function header
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2172) : error 010: invalid function or declaration
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2174) : error 010: invalid function or declaration
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2176) : error 010: invalid function or declaration
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2177) : error 010: invalid function or declaration
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2181) : error 021: symbol already defined: "GetPlayerPos"
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2185) : error 010: invalid function or declaration
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2187) : error 010: invalid function or declaration
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2188) : error 010: invalid function or declaration
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2191) : error 021: symbol already defined: "cx"
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2191) : error 021: symbol already defined: "cz"
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2196) : error 010: invalid function or declaration
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2198) : error 010: invalid function or declaration
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2199) : error 010: invalid function or declaration
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2201) : error 010: invalid function or declaration
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2203) : error 010: invalid function or declaration
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2204) : error 010: invalid function or declaration
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2206) : error 010: invalid function or declaration
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2208) : error 010: invalid function or declaration
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2209) : error 010: invalid function or declaration
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2211) : error 021: symbol already defined: "cx"
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2211) : error 021: symbol already defined: "cz"
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(2217) : error 010: invalid function or declaration
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(3359) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(5909) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(6856) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(8253) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(9211) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(20187) : warning 219: local variable "cx" shadows a variable at a preceding level
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(20187) : warning 219: local variable "cy" shadows a variable at a preceding level
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(20187) : warning 219: local variable "cz" shadows a variable at a preceding level
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(25046) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(27474) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(27510) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(27638) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(31914) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(32061) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(37303) : warning 219: local variable "health" shadows a variable at a preceding level
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(41900) : warning 219: local variable "cx" shadows a variable at a preceding level
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(41900) : warning 219: local variable "cy" shadows a variable at a preceding level
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(41900) : warning 219: local variable "cz" shadows a variable at a preceding level
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(43624) : warning 203: symbol is never used: "SetWorld"
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(43624) : warning 203: symbol is never used: "cx"
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(43624) : warning 203: symbol is never used: "cy"
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(43624) : warning 203: symbol is never used: "cz"
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(41795) : warning 204: symbol is assigned a value that is never used: "roadblocktimer"
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\gamemodes\RPGTUGA.pwn(10088) : warning 204: symbol is assigned a value that is never used: "tugate"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


25 Errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)