How to make a /(n)ext command? - 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: How to make a /(n)ext command? (
/showthread.php?tid=267964)
How to make a /(n)ext command? -
lawonama - 10.07.2011
How to make a /(n)ext command?
Actually im making a /next command, and i want they can use also /n instead of /next. How is that possible?
pawn Код:
if (strcmp("/next", cmdtext, true, 6) == 0)
{
print("blablabla")'
return 1;
}
Respuesta: How to make a /(n)ext command? -
Alex_Obando - 10.07.2011
pawn Код:
if(strcmp(cmd, "/next", true) == 0 || strcmp(cmd, "/next", true) == 0 || strcmp(cmd, "/nxt", true) == 0)
Re: How to make a /(n)ext command? -
Micheal_ - 10.07.2011
Quote:
if (strcmp("/next", cmdtext, true) == 0 || strcmp("/n", cmdtext, true) == 0)
{
// Do something here
return 1;
}
|
////
Re: How to make a /(n)ext command? -
Kush - 10.07.2011
pawn Код:
if(strcmp(cmd, "/next", true) == 0 || strcmp(cmd, "/n", true) == 0)
{
print("blablabla")'
return 1;
}