CMD's in filter script not working on server load
#6

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
Hello guys.

Change
[php]command(Paintgun, playerid, params[])
{
#pragma unused params
ShowPlayerDialog(playerid, PAINTGUN_DIALOG, DIALOG_STYLE_LIST, "Select a Paintball gun", "$350 - Paint Rifle\n $500 - MPaint5\n $600 - Paint Sniper\n $400 - Paint Action Shotgun\n $750 - Paint Deagle\n $200 - Silenced Paint\n", "Yes", "");
SendClientMessage(playerid, White, "Each weapon comes with 5 magazines worth of paintballs. /paintballs to buy paintballs.");
return 1;
}
...
Do you understand your mistake? Create a command with zcmd/sscanf
PHP код:
CMD:nameOfYourCommand(playeridparams[])
/* CMD:nameOfYourCommand(Player typing the command), Different params in your command) */ 
That's not actually a mistake, it's the old way of using zcmd and it's valid. Check zcmd thread.
Reply


Messages In This Thread
CMD's in filter script not working on server load - by ImToro - 06.05.2016, 13:35
Re: CMD's in filter script not working on server load - by xTURBOx - 06.05.2016, 13:47
Re: CMD's in filter script not working on server load - by ImToro - 06.05.2016, 13:54
Re: CMD's in filter script not working on server load - by iggy1 - 06.05.2016, 14:34
Re: CMD's in filter script not working on server load - by Dayrion - 06.05.2016, 14:48
Re: CMD's in filter script not working on server load - by iggy1 - 06.05.2016, 14:49
Re: CMD's in filter script not working on server load - by Dayrion - 06.05.2016, 14:52

Forum Jump:


Users browsing this thread: 1 Guest(s)