21.04.2011, 16:23
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:
Tell me what i did wrong, what i miss, and what i must do? (sorry guys, i am a noob xD)
Код:
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;
}

