[Include] y_commands - Most flexible and fastest command processor, now on the YSI wiki
#14

Try debug your code maybe like this:
Код:
YCMD:shop(playerid,params[],help)
{
    sendclientmessage(playerid, -1, "Command Called");
    new listtext[512],substr[40];
	if(help)
	{
            sendclientmessage(playerid, -1, "Help Called");
	    SEM(playerid,"CMDINFO: Displays shop to buy special weapons!");
	    return 1;
	}
	forex(i, 13)
	{
	    if(PlayerInfo[playerid][WeaponsPurchased][i])
	    {
	        format(substr,sizeof(substr),"%s - {33AA33}PURCHASED\n",GunNames[SelledGun[i][Weaponid]]);
	    }
	    else
	    {
            format(substr,sizeof(substr),"%s - $%d\n",GunNames[SelledGun[i][Weaponid]],SelledGun[i][Price]);
	    }
	    strcat(listtext,substr,sizeof(listtext));
	}
	ShowPlayerDialog(playerid,DIALOG_BUY_GUN,DIALOG_STYLE_LIST,"Guns Shop",listtext,"Buy","Exit");
	return 1;
}
If you don't get the message, that's the real y_commands problem, do you use OnPlayerCommandPerfomed or OnPlayerCommandReceived??
Reply


Messages In This Thread
y_commands - Most flexible and fastest command processor, now on the YSI wiki - by corne - 15.04.2015, 18:46
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by SickAttack - 16.04.2015, 05:29
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Crayder - 16.04.2015, 05:41
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by corne - 16.04.2015, 14:04
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Max_Andolini - 02.06.2015, 12:55
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by [KHK]Khalid - 02.06.2015, 16:21
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by RaeF - 03.06.2015, 12:09
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Max_Andolini - 03.06.2015, 13:18
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by RaeF - 03.06.2015, 23:13
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by justice96 - 27.07.2015, 08:24
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Crayder - 27.07.2015, 08:35
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by JaydenJason - 27.07.2015, 09:34
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by justice96 - 27.07.2015, 11:48
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by RaeF - 27.07.2015, 12:21
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by justice96 - 27.07.2015, 12:28
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Crayder - 27.07.2015, 16:26
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Kruzz - 02.12.2015, 18:45
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Crayder - 02.12.2015, 19:52
Respuesta: Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Zume - 02.12.2015, 22:42
Re: Respuesta: Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Crayder - 03.12.2015, 01:41

Forum Jump:


Users browsing this thread: 2 Guest(s)