STRCMP || Newbie 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)
+--- Thread: STRCMP || Newbie Question (
/showthread.php?tid=514415)
STRCMP || Newbie Question -
Le3aT - 21.05.2014
Well, I made a command called /admins, It show you the admins. But if you do /adm, It also show the admins, If you do /admin, It shows the admins, If you do /admins 2usahs It shows the admins. I want to do it for /admins ONLY, And if he types anything else, It won't be successful.
Re: STRCMP || Newbie Question -
Rittik - 21.05.2014
Код:
if(strcmp(cmdtext,"/admins",false)==0)
{
//your code goes here
return 1;
}