sscanf bug?
#1

SOLVED.
Reply
#2

PHP код:
if(sscanf(params"us[128]"VotekickPlayerIDVotekickReason))
{
SendClientMessage(playerid, -1"[Error:] /votekick <id> <reason>");

If you don't tell the script to stop there, it wont, so either the command issued is wrong or bad, the rest of the command will execute.

Use return in the code above for the rest of the command to stop executing.
Reply
#3

Quote:
Originally Posted by Toroi
Посмотреть сообщение
PHP код:
if(sscanf(params"us[128]"VotekickPlayerIDVotekickReason))
{
SendClientMessage(playerid, -1"[Error:] /votekick <id> <reason>");

If you don't tell the script to stop there, it wont, so either the command issued is wrong or bad, the rest of the command will execute.

Use return in the code above for the rest of the command to stop executing.
Thank you for your quick reply, I will try it later
Reply
#4

Hey, just a question, do you really create new variables on the top of your script for each cmd?
If yes, thats not really how you should do it.
Reply
#5

Quote:
Originally Posted by saffierr
Посмотреть сообщение
Hey, just a question, do you really create new variables on the top of your script for each cmd?
If yes, thats not really how you should do it.
No, I didn't create new variables on top of my script for each cmd I made.
Reply
#6

I've tried the fix and it worked! Thanks for all who helped me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)