29.03.2014, 01:18
I need a simple command
/buy flowers 300 and bouquet to use me flowers
/buy flowers 300 and bouquet to use me flowers
CMD:buy(playerid, params[])
{
GivePlayerWeapon(playerid, idweapon);
GivePlayerMoney(playerid, -money);
return 1;
}
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;
}
pawn Код:
|
futura.pwn(24179) : error 001: expected token: ")", but found "{" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 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