little question - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: little question (
/showthread.php?tid=260064)
little question -
rinori - 07.06.2011
Can i make " if(strcmp(cmd, "/shout", true) == 0 || strcmp(cmd, "/s", true) == 0)" on dcmd
ex like there are two commands same, can i make 2 commands same with dcmd too? if yes, how?
Re: little question -
Wesley221 - 07.06.2011
pawn Код:
dcmd_shout(playerid, params[])
{
//code here
}
dcmd_s(playerid, params[])
{
return dcmd_shout
}
If im right this should work
AW: little question -
Julian12345 - 07.06.2011
pawn Код:
dcmd_shout(playerid, params[])
{
//code here
}
dcmd_s(playerid, params[])
{
return dcmd_shout(playerid,params);
}
Re: little question -
rinori - 07.06.2011
alright, thanks