Erro 029 pawno
#1

Eae galera so novo no pawno e queria saber qual й o erro nessa parte

}
*/
public OnPlayerPickUp(playerid, pickupid)

{
[KillTimer(DestroyPickup(pickupid)];
[DestroyPickup(pickupid)(pickupid)];
}
return 1;
}
if(pickupid == picVida)
{
new Float:health;
GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, health + 15);
KillTimer(DestroyPickupVidaTimer[picVida]);
DestroyVidaPickup(pickupid);
return 1

estгo aparecendo os seguinte erros na linha do [KillTimer(DestroyPickup(pickupid)]

C:\Users\emo\Desktop\samp03dsvr_R2_win32\gamemodes \BAC.pwn(13501) : error 029: invalid expression, assumed zero
C:\Users\emo\Desktop\samp03dsvr_R2_win32\gamemodes \BAC.pwn(13501) : error 001: expected token: ",", but found "]"
C:\Users\emo\Desktop\samp03dsvr_R2_win32\gamemodes \BAC.pwn(13501) : error 029: invalid expression, assumed zero
C:\Users\emo\Desktop\samp03dsvr_R2_win32\gamemodes \BAC.pwn(13501) : fatal error 107: too many error messages on one line
Reply
#2

Vocк abriu dois parкntesis mas sу fechou um no snippet "[KillTimer(DestroyPickup(pickupid)]"

pawn Код:
[KillTimer(DestroyPickup(pickupid))]
Reply
#3

como e novato, sempre que for postar algum code aki coloque assim:

[pawn*]
CODE
[/pawn*]

OBS: Sem a *

Fica mais facil de intender!


Agora qual e a linha que ta dando erro?
Reply
#4

pawn Код:
}
*/
public OnPlayerPickUp(playerid, pickupid)

{
[KillTimer(DestroyPickup(pickupid))];
[DestroyPickup(pickupid)(pickupid)];
}
return 1;
}
if(pickupid == picVida)
{
new Float:health;
GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, health + 15);
KillTimer(DestroyPickupVidaTimer[picVida]);
DestroyVidaPickup(pickupid);
return 1
Reply
#5

ainda esta dando erro mais e na 13502 antes era 13501

pawn Код:
C:\Users\emo\Desktop\samp03dsvr_R2_win32\gamemodes\BAC.pwn(13502) : error 029: invalid expression, assumed zero
C:\Users\emo\Desktop\samp03dsvr_R2_win32\gamemodes\BAC.pwn(13502) : error 001: expected token: ";", but found "]"
C:\Users\emo\Desktop\samp03dsvr_R2_win32\gamemodes\BAC.pwn(13502) : error 029: invalid expression, assumed zero
C:\Users\emo\Desktop\samp03dsvr_R2_win32\gamemodes\BAC.pwn(13502) : fatal error 107: too many error messages on one line
Reply
#6

A linha 13502 й essa?

pawn Код:
[DestroyPickup(pickupid)(pickupid)];
se for, tenta isso;

pawn Код:
[DestroyPickup[pickupid][pickupid]];
Reply
#7

este й o codigo da linha 13502

[KillTimer(DestroyPickup(pickupid))];
Reply
#8

Quote:
Originally Posted by yuran-kun
Посмотреть сообщение
este й o codigo da linha 13502

[KillTimer(DestroyPickup(pickupid))];
o cуdigo estб entre colchetes, o certo й;

pawn Код:
KillTimer(DestroyPickup(pickupid));
Reply
#9

Vish nao to entendendo nao ae add no msn talvez fique mais facil pf yuran_guitar@hotmail.com
Reply
#10

O que й isso? LOL
Tenta isso:
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    KillTimer(DestroyPickup(pickupid));
    DestroyPickup(pickupid);
    if(pickupid == picVida)
    {
        new Float:health;
        GetPlayerHealth(playerid, health);
        SetPlayerHealth(playerid, health + 15);
        KillTimer(DestroyPickupVidaTimer[picVida]);
        DestroyVidaPickup(pickupid);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)