how to fix /mpobject command to show toy names - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to fix /mpobject command to show toy names (
/showthread.php?tid=429960)
how to fix /mpobject command to show toy names -
matthew1211 - 12.04.2013
ok i use /mpobject to give users toys but it appears in /toys like this example: Slot 0, None (Bone:Spine)
the none = the toy name. Here is my code
CMD:mpobject(playerid, params[])
{
if(PlayerInfo[playerid][pShopTech] == 1)
{
ShowPlayerDialog(playerid, SHOPOBJECT_ORDERID, DIALOG_STYLE_INPUT, "Shop Objects - Order ID", "Please enter the Order ID", "OK", "Cancel");
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
return 1;
}
return 1;
}
Re: how to fix /mpobject command to show toy names -
Giroud12 - 12.04.2013
Yo bro use to put code from pawno
Re: how to fix /mpobject command to show toy names -
BittleRyan - 12.04.2013
To put your code in pawn use [PAWN] tags.