SA-MP Forums Archive
*** Not a descriptive title - ******. - 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: *** Not a descriptive title - ******. (/showthread.php?tid=395721)



*** Not a descriptive title - ******. - NeroX98 - 27.11.2012

i like to make this
Код:
if(strcmp(cmd,"/showbadge",true)==0 || strcmp(cmd,"/pokaziznacku",true)==0)
IN ZCMD

I tried this but it cant...
Код:
	CMD:pznacka(playerid, params[]) || CMD:showbadge(playerid, params[])



Re: Easy question :) REP + - ScRaT - 27.11.2012

PHP код:
CMD:pznacka(playeridparams[]) return cmd_showbadgeplayerid""); 



Re: Easy question :) REP + - SuperViper - 27.11.2012

pawn Код:
CMD:pznacka(playerid, params[]) return cmd_showbadge(playerid, params);
CMD:showbadge(playerid, params[])
{
    return 1;
}



Re: Easy question :) REP + - NeroX98 - 27.11.2012

Quote:
Originally Posted by ScRaT
Посмотреть сообщение
PHP код:
CMD:pznacka(playeridparams[]) return cmd_showbadgeplayerid""); 
It gives me 26 errors... (REP +1)

Quote:
Originally Posted by SuperViper
Посмотреть сообщение
pawn Код:
CMD:pznacka(playerid, params[]) return cmd_showbadge(playerid, params);
CMD:showbadge(playerid, params[])
{
    return 1;
}
WORKED REP +1