[Ajuda] medkit nгo recupera vida de todos
#4

Olha ocorreu alguns erros:

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"

Linhas:

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;
}

Reply


Messages In This Thread
medkit nгo recupera vida de todos - by axtlon - 26.02.2018, 17:37
Re: medkit nгo recupera vida de todos - by pWesley - 26.02.2018, 18:34
Re: medkit nгo recupera vida de todos - by IlanZ - 26.02.2018, 19:18
Re: medkit nгo recupera vida de todos - by axtlon - 26.02.2018, 19:40
Re: medkit nгo recupera vida de todos - by axtlon - 26.02.2018, 20:13

Forum Jump:


Users browsing this thread: 1 Guest(s)