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=393944)
Errors! -
Louris - 20.11.2012
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(PlayerInfo[playerid][pKaledu] == 0)
if(pickupid == Dovanospickup) GivePlayerMoney(playerid,10000);
PlayerInfo[playerid][pKaledu] = 1;
}
else
{
SendClientMessage(playerid, 0xDEEE20FF, "Neapgausi kalėdų senelio, jau gavai dovaną!");
return 1;
}
Errors:
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 260) : error 010: invalid function or declaration
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 263) : error 010: invalid function or declaration
Errors lines:
260 Else
263 return 1;
Re: Errors! -
-=Dar[K]Lord=- - 20.11.2012
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(PlayerInfo[playerid][pKaledu] == 0)
if(pickupid == Dovanospickup)
{
GivePlayerMoney(playerid,10000);
PlayerInfo[playerid][pKaledu] = 1;
}
else
{
SendClientMessage(playerid, 0xDEEE20FF, "Neapgausi kaledu senelio, jau gavai dovana!");
}
return 1;
}