What happen? - 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: What happen? (
/showthread.php?tid=189624)
What happen? -
XxerykxX - 12.11.2010
Hello. I compiled my pwn find, I didn't get any errors or warnings. I join my server but when i type any command it says it is unknown for the server. Any conclusions ?
Re: What happen? -
Brian_Furious - 12.11.2010
what commands do you use: exemple ZMCD, DCMD or strcmp + strok
Re: What happen? -
XxerykxX - 12.11.2010
Ohh I found.. It was with zcmd.inc . Don't know why. I really need zcmd for the animations meyby its old?
Re: What happen? -
The_Moddler - 12.11.2010
Make sure that you added a
return 1; in the end of every command.
Re: What happen? -
eDz0r - 12.11.2010
be sure is like this
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/command1", cmdtext, true, 10) == 0)
{
//Something Here
return 1;
}
if (strcmp("/command2", cmdtext, true, 10) == 0)
{
//Something Here
return 1;
}
return 0;
}
Re: What happen? -
XxerykxX - 12.11.2010
It is dialog.
http://pastebin.com/yMZyBdBM
It is my code.
Re: What happen? -
Brian_Furious - 12.11.2010
The problem is that: if you use strmp + strok and zcmd, you bug your GM...idk the reason yet, but it happened to me too
Re: What happen? -
XxerykxX - 12.11.2010
Thank for help.