17.10.2013, 09:02
Hello guys,
I got this command:
i get no compiling errors but in game does this:
It should say Owner Voxel has given you [amount] [item name]
and under in this picture i typed /giveitem 0 1 Test
but it didnt give me 1 test but 49 or something..
I got this command:
pawn Код:
CMD:giveitem(playerid,params[])
{
if(pInfo[playerid][pAdminLevel] >= 6)
{
if(IsPlayerConnected(playerid))
{
new targetid,string[64],amount;
if(sscanf(params, "is[64]", targetid,amount,string)) return SendClientMessage(playerid,-1,""chat" /giveitem [id] [amount] [item name]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
{
AddSlotToInventoryWorld(targetid,string,amount);
}
new str[230];
format(str,sizeof(str),"*"COL_YELLOW" %s %s has given you "COL_WHITE"%i"COL_GREEN" %s",GetAdminName(playerid),PlayerName(playerid), amount, string);
SendClientMessage(targetid,-1,str);
}
}
return 1;
}
It should say Owner Voxel has given you [amount] [item name]
and under in this picture i typed /giveitem 0 1 Test
but it didnt give me 1 test but 49 or something..