Errors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Errors (
/showthread.php?tid=395922)
Errors -
Louris - 28.11.2012
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(PlayerInfo[playerid][pDovana] == 0)
if(pickupid == 0) GivePlayerMoney(playerid,10000);
SendClientMessage(playerid, 0xDEEE20FF, "Gerų Kalėdų!");
PlayerInfo[playerid][pDovana] = true;
}
else
{
SendClientMessage(playerid, 0xDEEE20FF, "Jūs jau gavote dovaną!");
return 1;
}
Errors:
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 290) : error 010: invalid function or declaration
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 293) : error 010: invalid function or declaration
Error lines:
Re: Errors -
HarryPotter - 28.11.2012
You didn't put all the nessecery { and }.. Try to use this;
PHP код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(PlayerInfo[playerid][pDovana] == 0)
{
if(pickupid == 0) GivePlayerMoney(playerid,10000);
SendClientMessage(playerid, 0xDEEE20FF, "Geru Kaledu!");
PlayerInfo[playerid][pDovana] = true;
}
else
{
SendClientMessage(playerid, 0xDEEE20FF, "Jus jau gavote dovana!");
return 1;
}
return 1;
}