hey guys i make a command for give money no errors but command dont work when i type /givemoney playerid 1 it dont give me any amount help
code
code
Code:
CMD:givemoney(playerid,params[])
{
if(IsPlayerAdmin(playerid) < 1) return SendClientMessage(playerid, 0x33AA33AA, "[BA:RP]Niste Ovlasceni!");
new targetid;
new value;
{
if(sscanf(params, "d", targetid, value)) return SendClientMessage(playerid, 0x33AA33AA, "[BA:RP]Koristi /givemoney [playerid] [money]");
{
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0x33AA33AA, "[BA:RP]Igrac nije online!");
{
if(IsPlayerAdmin(targetid) < 1)return SendClientMessage (playerid, 0x33AA33AA, "[BA:RP]Niste Ovlasceni!");
GivePlayerMoney(playerid, value);
}
}
}
return 1;
}