Barman work command
#5

LOL xD, I tried to make it in this way, but doesn't work, and all my other commands stop to work xD, But i didn't get errors in compile:

Код:
        new giveplayerid;
        new sendername[MAX_PLAYER_NAME];
	new giveplayer[MAX_PLAYER_NAME];
	if (strcmp("/giveit", cmdtext, true, 10) == 0)
	{
	 	if (IsPlayerConnected(giveplayerid))
        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
		GetPlayerName(playerid, sendername, sizeof(sendername));
		SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_DRINK_BEER);
	}
	else
	{
        SendClientMessage(playerid, 0xFFFF00AA, "Invalid transaction amount.");
		return 1;
	}
Tell me what i did wrong, what i miss, and what i must do? (sorry guys, i am a noob xD)
Reply


Messages In This Thread
Barman work command - by NitoPSG - 20.04.2011, 16:23
Re: Barman work command - by Vince - 20.04.2011, 16:31
Re: Barman work command - by NitoPSG - 20.04.2011, 16:35
Re: Barman work command - by NitoPSG - 21.04.2011, 16:21
Re: Barman work command - by NitoPSG - 21.04.2011, 16:23
Re: Barman work command - by NitoPSG - 21.04.2011, 21:12

Forum Jump:


Users browsing this thread: 1 Guest(s)