26.02.2018, 19:40
Olha ocorreu alguns erros:
Linhas:
Quote:
C:\Users\Usuario\Desktop\Novas GMS\gamemodes\BPS.pwn(92242) : warning 219: local variable "Colete" shadows a variable at a preceding level C:\Users\Usuario\Desktop\Novas GMS\gamemodes\BPS.pwn(92244) : error 035: argument type mismatch (argument 2) C:\Users\Usuario\Desktop\Novas GMS\gamemodes\BPS.pwn(92249) : warning 213: tag mismatch C:\Users\Usuario\Desktop\Novas GMS\\gamemodes\BPS.pwn(9225 : warning 213: tag mismatch C:\Users\Usuario\Desktop\Novas GMS\gamemodes\BPS.pwn(9225 : warning 213: tag mismatch C:\Users\Usuario\Desktop\Novas GMS\gamemodes\BPS.pwn(92242) : warning 203: symbol is never used: "Colete" |
Quote:
DetectarMedKit(playerid) { new Float:Vida, Float:Colete; GetPlayerHealth(playerid, Vida); GetPlayerArmour(playerid, Colete); for(new i; i < MAX_MEDKITS; i++) { if(IsPlayerInRangeOfPoint(playerid, 1.0, MedKitDados[i][mX], MedKitDados[i][mY], MedKitDados[i][mZ]) && MedKitDados[i][mAtivo]) { if(Vida >= 100 && Colete >= 100) continue; else if(Vida < 100) { SetPlayerHealth(playerid, (Vida+7)); PlayerPlaySound(playerid, 5202, 0.0, 0.0, 0.0); MedKitDados[i][mDurabilidade]--; } else if(Vida >= 100) { SetPlayerArmour(playerid, (Colete+7)); PlayerPlaySound(playerid, 5202, 0.0, 0.0, 0.0); MedKitDados[i][mDurabilidade]--; } if(MedKitDados[i][mDurabilidade] == 0) { DestruirMedKit(MedKitDados[i][mID]); MedKitZ[playerid] = false; PlayerPlaySound(playerid, 6402, 0.0, 0.0, 0.0); SendClientMessage(playerid, -1, "Medkit quebrou!"); } } } return 1; } |