Command typed, nothing happen
#1

Hello, when i type this command it dont happen anything, can you fix it please?

Код:
CMD:givemoney(playerid, params[])
{
	new givid, amount, giveplayer[MAX_PLAYER_NAME];
    if(sscanf(params, "k<pon>", givid)) { Text_2Send(playerid,"Hasznбlat: %s","Usage: %s","/givemoney (PLAYER) [amount]"); return 1; }
	if(givid == INVALID_PLAYER_ID) return Text_Send(playerid,"Йrvйnytelen jбtйkos!","Invalid player!");
	GetPlayerName(playerid, sendername, sizeof(sendername));
    GetPlayerName(givid, giveplayer, sizeof(giveplayer));
    format(astring, sizeof(astring), "%s adolt %d pйnzt hogy %s","%s gave %d money to %s", sendername, giveplayer);
	SendClientMessageToAll(COLOR_YELLOW, astring);
	GivePlayerCash(playerid, -amount);
	GivePlayerCash(givid, amount);
	return 1;
}
Reply


Messages In This Thread
Command typed, nothing happen - by Blackazur - 09.11.2013, 11:58
Re: Command typed, nothing happen - by Champ - 09.11.2013, 12:00
Re: Command typed, nothing happen - by Loot - 09.11.2013, 12:02
Re: Command typed, nothing happen - by xganyx - 09.11.2013, 12:04

Forum Jump:


Users browsing this thread: 1 Guest(s)