Two questions
#7

Woops, didn't understand you.

This is probably why, you are checking if the player typed a string, when infact it's a number. Try this:

pawn Код:
//Wrong
if(sscanf(params,"us[100]",ID,cmdreason)) // s[100] means it checks if you typed a string (max is 100)
{

//Right
if(sscanf(params,"ui", ID, cmdreason)) //cmd reason is an integer, meaning the second letter must be i or d (for integer)
{
Quote:
Originally Posted by RealCop228
Посмотреть сообщение
You don't need to check if a player is connected when using sscanf IIRC since it already does that for you.
Wow, all this time I've been checking if the player was connected. Silly me.
Reply


Messages In This Thread
Two questions - by _Khaled_ - 23.06.2013, 01:27
Re: Two questions - by horsemeat - 23.06.2013, 01:50
Re: Two questions - by RedFusion - 23.06.2013, 01:55
Re: Two questions - by _Khaled_ - 23.06.2013, 02:20
Re: Two questions - by Kindred - 23.06.2013, 02:38
Re: Two questions - by _Khaled_ - 23.06.2013, 02:44
Re: Two questions - by Kindred - 23.06.2013, 02:58
Re: Two questions - by Scenario - 23.06.2013, 03:01

Forum Jump:


Users browsing this thread: 1 Guest(s)