26.03.2017, 17:54
Hello.
I have a problem with a command.
The command does not create a item or display the test message.
What am i doing wrong?
I have a problem with a command.
The command does not create a item or display the test message.
What am i doing wrong?
PHP код:
CMD:createitem(playerid,params[])
{
new modelid;
if(sscanf(params,"u",modelid)) return SendClientMessage(playerid,GREY,"USAGE: /createitem [itemid]");
if(modelid == 3026)
{
AddItem(playerid,modelid);
}
if(modelid == 346)
{
AddItem(playerid,modelid);
}
if(modelid == 336)
{
AddItem(playerid,modelid);
}
if(modelid == 849)
{
AddItem(playerid,modelid);
Inventory[playerid][InvSlots] += 1;
Inventory[playerid][InvInduScraps] += 1;
SendClientMessage(playerid,GREY,"test message");
}
return 1:
}