30.03.2015, 23:56
Quando chega a 400 de vida o carro quebra, mais o sistema ta dando os seguintes erros na minha gm.
Oque esta de errado?
PHP код:
C:\Users\Sheriff\Desktop\SP Virtual\pawno\include\streamer.inc(333) : warning 201: redefinition of constant/macro (symbol "OnGameModeInit")
C:\Users\Sheriff\Desktop\SP Virtual\gamemodes\MundoNovo.pwn(1006) : error 017: undefined symbol "sendername"
C:\Users\Sheriff\Desktop\SP Virtual\gamemodes\MundoNovo.pwn(1006) : error 017: undefined symbol "sendername"
C:\Users\Sheriff\Desktop\SP Virtual\gamemodes\MundoNovo.pwn(1006) : error 029: invalid expression, assumed zero
C:\Users\Sheriff\Desktop\SP Virtual\gamemodes\MundoNovo.pwn(1006) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB 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); } } } } }