Erro 029 pawno -
yuran-kun - 27.04.2012
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
Re: Erro 029 pawno -
Mandrakke - 27.04.2012
Vocк abriu dois parкntesis mas sу fechou um no snippet "[KillTimer(DestroyPickup(pickupid)]"
pawn Код:
[KillTimer(DestroyPickup(pickupid))]
Re: Erro 029 pawno -
Panico622 - 27.04.2012
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?
Re: Erro 029 pawno -
Panico622 - 27.04.2012
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
Re: Erro 029 pawno -
yuran-kun - 27.04.2012
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
Re: Erro 029 pawno -
Mandrakke - 27.04.2012
A linha 13502 й essa?
pawn Код:
[DestroyPickup(pickupid)(pickupid)];
se for, tenta isso;
pawn Код:
[DestroyPickup[pickupid][pickupid]];
Re: Erro 029 pawno -
yuran-kun - 27.04.2012
este й o codigo da linha 13502
[KillTimer(DestroyPickup(pickupid))];
Re: Erro 029 pawno -
Mandrakke - 27.04.2012
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));
Re: Erro 029 pawno -
yuran-kun - 27.04.2012
Vish nao to entendendo nao ae add no msn talvez fique mais facil pf
yuran_guitar@hotmail.com
Re: Erro 029 pawno -
humildadeforever - 27.04.2012
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;
}