Command message weird/messed up - 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: Command message weird/messed up (
/showthread.php?tid=554055)
Command message weird/messed up solved -
Tom1412 - 02.01.2015
Solved
Re: Command message weird/messed up -
Schneider - 02.01.2015
Just learn how to use sscanf, it's the same problem as your previous topic and the same solution:
Consider learning the basics first before you jump into this stuff. Just like you need to learn how to use a hammer before you start building a house, right?
pawn Код:
new id, reason[64]
(sscanf(params, "us[64]", id, reason))
Re: Command message weird/messed up -
Tom1412 - 02.01.2015
I have tried your method even though you was an ass. Still breaks the server. Still all the same bugs.
Re: Command message weird/messed up -
HY - 02.01.2015
You don't writed in your code all parameters. You said, for example, in kick & ban command only 1 parameter.
Re: Command message weird/messed up -
Tom1412 - 02.01.2015
I removed the sscanf part on one of the kick command and it kicks me when I put no id's or an id.
Re: Command message weird/messed up -
Schneider - 02.01.2015
of course, you created a new variable (with automatically gets the value '0'), you don't use sscanf anymore to assign a playerid to that variable so if you kick the player 'variable' it will kick playerid 0.
Re: Command message weird/messed up -
Vince - 02.01.2015
You need to add at least one class to solve the world bounds bug.