SA-MP Forums Archive
Command Not Working - 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: Command Not Working (/showthread.php?tid=82360)



Command Not Working - Kyle - 17.06.2009

When i type it in nothing happens it dont even say unknown command or eithen your not in a checkpoint

http://pastebin.com/m2e48d189

Can you fix it please or take a look thanks!


Re: Command Not Working - Kyle - 17.06.2009

Dont no one know?


Re: Command Not Working - Correlli - 17.06.2009

Add debug messages to see where the problem appears.


Re: Command Not Working - Kyle - 17.06.2009

How do i do that?


Re: Command Not Working - Correlli - 17.06.2009

Add printf function after every line, like this:
pawn Код:
printf("DEBUG: bla bla bla");



Re: Command Not Working - Luka P. - 17.06.2009

Quote:
Originally Posted by Don Correlli
Add printf function after every line, like this:
pawn Код:
printf("DEBUG: bla bla bla");
printf request {Float,_}


Re: Command Not Working - Correlli - 17.06.2009

..? Do you even know what is printf for?
Are you trying to say that this:
pawn Код:
printf("DEBUG: bla bla bla");
is incorrect..?
He can use print in this case but printf is formatting strings, floats, ..


Re: Command Not Working - Luka P. - 17.06.2009

Yeah,I say you doesn`t have any float.
You could just use print(""); but printf needs to be printf("",float);


Re: Command Not Working - Correlli - 17.06.2009

Quote:
Originally Posted by Luka™
Yeah,I say you doesn`t have any float.
You could just use print(""); but printf needs to be printf("",float);
No it doesn't. It can be normal text too, but i used printf because he's probably going to need it.


Re: Command Not Working - Luka P. - 17.06.2009

Yeah,probably he will need it,but it will cause warnings if you doesn`t have any float in printf