[Ajuda] o que esta errado ?
#1

Na OnPlayerDeath


pawn Код:
if(GetPlayerHealth(killerid == 100) if(GetPlayerArmour(killerid, == 100);
    {
        if(GetPlayerWeapon(killerid == 24 && 25)
        {
            GameTextForPlayer(killerid, "~w~P~b~erfect ~w~!" 2000, 6);
        }
    }
Ta dando erro affz
Reply
#2

UP Gentк
Reply
#3

pawn Код:
if(GetPlayerHealth(killerid) == 100.0 && GetPlayerArmour(killerid) == 100.0)
{
    if(GetPlayerWeapon(killerid) == 24 || GetPlayerWeapon(killerid) == 25)
    {
        GameTextForPlayer(killerid, "~w~P~b~erfect ~w~!" 2000, 6);
    }
}
Reply
#4

iReflesh .

Nгo deu certo . UP

tentei assim mais tambйm nгo deu :

pawn Код:
new
        Float: health,
        Float: armour
    ;

    GetPlayerHealth(killerid, health);
    GetPlayerArmour(killerid, armour);

    if (health == 100.0), if (armour == 100.0);
    {
        GameTextForPlayer(killerid, "~w~P~b~erfect ~w~!" 2000, 6);
    }
Reply
#5

pawn Код:
if(health == 100.0 && armour == 100.0)
    {
Reply
#6

Continua errado aff Up
Reply
#7

Ta tudu erradu caraiu

pawn Код:
if(GetPlayerHealth(killerid) == 100 && GetPlayerArmour(killerid) == 100);
    {
        if(GetPlayerWeapon(killerid) == 24 || GetPlayerWeapon(killerid) == 25)
        {
            GameTextForPlayer(killerid, "~w~P~b~erfect ~w~!" 2000, 6);
        }
    }
Reply
#8

Kuddy

C:\Users\LxD\Desktop\Servidor\gamemodes\Untitled.p wn(77) : warning 202: number of arguments does not match definition
C:\Users\LxD\Desktop\Servidor\gamemodes\Untitled.p wn(77) : warning 202: number of arguments does not match definition
C:\Users\LxD\Desktop\Servidor\gamemodes\Untitled.p wn(77) : error 036: empty statement
C:\Users\LxD\Desktop\Servidor\gamemodes\Untitled.p wn(81) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\LxD\Desktop\Servidor\gamemodes\Untitled.p wn(81) : warning 215: expression has no effect
C:\Users\LxD\Desktop\Servidor\gamemodes\Untitled.p wn(81) : warning 215: expression has no effect
C:\Users\LxD\Desktop\Servidor\gamemodes\Untitled.p wn(81) : error 001: expected token: ";", but found ")"
C:\Users\LxD\Desktop\Servidor\gamemodes\Untitled.p wn(81) : error 029: invalid expression, assumed zero
C:\Users\LxD\Desktop\Servidor\gamemodes\Untitled.p wn(81) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Reply
#9

Tira os dois pontos do final do primeiro if.

pawn Код:
if(GetPlayerHealth(killerid) == 100 && GetPlayerArmour(killerid) == 100)
    {
        if(GetPlayerWeapon(killerid) == 24 || GetPlayerWeapon(killerid) == 25)
        {
            GameTextForPlayer(killerid, "~w~P~b~erfect ~w~!" 2000, 6);
        }
    }
Nгo tem ';'.
Reply
#10

Quote:
Originally Posted by lgoulart
Посмотреть сообщение
Tira os dois pontos do final do primeiro if.

pawn Код:
if(GetPlayerHealth(killerid) == 100 && GetPlayerArmour(killerid) == 100)
    {
        if(GetPlayerWeapon(killerid) == 24 || GetPlayerWeapon(killerid) == 25)
        {
            GameTextForPlayer(killerid, "~w~P~b~erfect ~w~!" 2000, 6);
        }
    }
Nгo tem ';'.
Nao vi isso eeeh'

Mas ainda esta errado..


pawn Код:
new Float:Health, Float:Amor;
    GetPlayerHealth(killerid, Health);
    GetPlayerArmour(killerid, Amor);
    if(Health == 100.0 && Amor == 100.0)
    {
        if(GetPlayerWeapon(killerid) == 24 || GetPlayerWeapon(killerid) == 25)
        {
            GameTextForPlayer(killerid, "~w~P~b~erfect ~w~!" 2000, 6);
        }
    }
Agora sim parece estar certo. Nao tentei compilar nem teste ^-^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)