[Ajuda] Carro quebrado
#1

Quando chega a 400 de vida o carro quebra, mais o sistema ta dando os seguintes erros na minha gm.

PHP код:
C:\Users\Sheriff\Desktop\SP Virtual\pawno\include\streamer.inc(333) : warning 201redefinition of constant/macro (symbol "OnGameModeInit")
C:\Users\Sheriff\Desktop\SP Virtual\gamemodes\MundoNovo.pwn(1006) : error 017undefined symbol "sendername"
C:\Users\Sheriff\Desktop\SP Virtual\gamemodes\MundoNovo.pwn(1006) : error 017undefined symbol "sendername"
C:\Users\Sheriff\Desktop\SP Virtual\gamemodes\MundoNovo.pwn(1006) : error 029invalid expressionassumed zero
C
:\Users\Sheriff\Desktop\SP Virtual\gamemodes\MundoNovo.pwn(1006) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Код:
forward CheckCarHealth();

public CheckCarHealth()
{
new string[256];
for (new i=0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i) && IsPlayerInAnyVehicle(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER)
{
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(i),health);
        new carro = GetPlayerVehicleID(i);
new mot, lu, alar, por, cap, porma, ob;
if(health <= 400)
{
if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
{
TogglePlayerControllable(i, 1);
SendClientMessage(i, COLOR_LIGHTBLUE, "Seu veiculo quebrou, tente ligar novamente ou ligue para um mecanico!");
GetPlayerName(i, sendername, sizeof(sendername));
format(string, sizeof(string), "* O veiculo de %s quebrou.", sendername);
ProxDetector(30.0, i, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
SetVehicleParamsEx(carro, VEHICLE_PARAMS_OFF, lu, alar, por, cap, porma, ob);
}
}
}
}
}
Oque esta de errado?
Reply


Messages In This Thread
Carro quebrado - by druiida159 - 30.03.2015, 23:56
Re: Carro quebrado - by Whoo - 31.03.2015, 00:02

Forum Jump:


Users browsing this thread: 1 Guest(s)