16.12.2017, 23:51
Pessoal eu sou MUUUUUUUUUUITOOOOOOOOOOOOOO novato em pawno e queria criar algumas pickups porйm quando vou criar dб alguns erros
O cуdigo da pickup estб assim:
Код:
C:\#SA-MP Server GM\gamemodes\gmsamp.pwn(688) : error 029: invalid expression, assumed zero C:\#SA-MP Server GM\gamemodes\gmsamp.pwn(688) : error 004: function "OnPlayerPickUpPickup" is not implemented C:\#SA-MP Server GM\gamemodes\gmsamp.pwn(690) : error 017: undefined symbol "pickupid" C:\#SA-MP Server GM\gamemodes\gmsamp.pwn(692) : error 017: undefined symbol "playerid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
PHP код:
public OnGameModeInit ()
{
new colete;
colete = CreatePickup(1242, 2, 2613.5334,1824.0939,10.8203, 0);
public OnPlayerPickUpPickup(playerid, 1242)
{
if(pickupid == colete)
{
SetPlayerArmour(playerid, 100);
}
return 1;
}
}