[Ajuda] Quando tiver com colete aparecer o acessуrio
#1

Tipo, eu queria que quando o player tivesse com colete
Fiz assim:

pawn Код:
public OnPlayerUpdate(playerid)
{
    new Float:armour;
    GetPlayerArmour(playerid, armour);
   
    if(armour >= 1 || <= 99999999)
    {
        SetPlayerAttachedObject(playerid,1 ,373 , 1, 0.33, -0.029, -0.15, 65, 25, 35);
    }
    else
    {
        RemovePlayerAttachedObject(playerid,2);
    }
    return 1;
}
Mas deu esses erros:

pawn Код:
C:\Documents and Settings\Rhay\Desktop\Video Aula\gamemodes\BSL.pwn(344) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Rhay\Desktop\Video Aula\gamemodes\BSL.pwn(344) : warning 215: expression has no effect
C:\Documents and Settings\Rhay\Desktop\Video Aula\gamemodes\BSL.pwn(344) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Rhay\Desktop\Video Aula\gamemodes\BSL.pwn(344) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Rhay\Desktop\Video Aula\gamemodes\BSL.pwn(344) : 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.
=/ Uй, Alguem ajuda ae...
Reply
#2

pawn Код:
if(armour >= 1 || armour <= 99999999)
Reply
#3

Quote:
Originally Posted by AmericanStyle'™
Посмотреть сообщение
pawn Код:
if(armour >= 1 || armour <= 99999999)
Vlw , +rep pra vocк!

@edit

Uй, mesmo que eu sem colete, ele fica com o acessorio =/
Reply
#4

Simples, basta traduzirmos seu cуdigo:

SE(Armour for maior ou igual a 1 OU menor ou igual a 99999999999)

QUALQUER VALOR DE COLETE passarб nessa sua condiзгo '-'

Por que? colete vazio, significa 0, 0 й menor que 99999 '-'

Entгo mantйm sу a primeira condiзгo

pawn Код:
if(armour >= 1)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)