(simple command) /buy
#10

Quote:
Originally Posted by Stanford
Посмотреть сообщение
pawn Код:
CMD:buy(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0, x, y, z) // Change the range and the x, y, z to the position that you desire!
    {
        GivePlayerWeapon(playerid, 14, 300);
        GivePlayerMoney(playerid, -money);
        SendClientMessage(playerid, -1, "You've successfully purchased the flowers!.");
    }
    return 1;
}
I hope I helped!.





I put it through and gives me 1 error

Код:
futura.pwn(24179) : error 001: expected token: ")", but found "{"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.


put it) and gives me this error

Код:
ggamemodes\ultra.pwn(24184) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.

Код:
if(IsPlayerInRangeOfPoint(playerid, 3.0, x, y, z) // Change the range and the x, y, z to the position that you desire!
	{   ←  this gives me error
Reply


Messages In This Thread
(simple command) /buy - by vegaltasendai - 29.03.2014, 01:18
Re: (simple command) /buy - by RenovanZ - 29.03.2014, 01:27
Re: (simple command) /buy - by vegaltasendai - 29.03.2014, 01:54
Re: (simple command) /buy - by RenovanZ - 29.03.2014, 02:09
Re: (simple command) /buy - by vegaltasendai - 29.03.2014, 02:39
Re: (simple command) /buy - by Mriss - 29.03.2014, 02:51
Re: (simple command) /buy - by vegaltasendai - 29.03.2014, 03:05
Re: (simple command) /buy - by DarkLored - 29.03.2014, 03:10
Re: (simple command) /buy - by Stanford - 29.03.2014, 05:33
Re: (simple command) /buy - by vegaltasendai - 29.03.2014, 14:44

Forum Jump:


Users browsing this thread: 3 Guest(s)