Sscanf problem
#1

Hi,

I'm using sscanf2 plugin/include and I keep having this problem.I made some commands using the "u"(playerid) but when i put IsPlayerConnected(ID); at the begining of the command it always says that the player is not connected, even if it is.
Код:
CMD:setfaction(playerid, params[])
{
	new ID, level;
	if(sscanf(params, "ud", ID, level))
		return Syntax("/setfaction [playerid] [faction]");
	if(!IsPlayerConnected(ID))
		return Error("Player not connected"); //Here is the problem...it always says it isn't connected
	PlayerInfo[ID][pFaction] = level;
	return 1;
}
Thanks
Reply
#2

Do you have the latest Version of SSCANF ?
Reply
#3

Update sscanf plugin
Reply
#4

I have the latest one(from the sscanf 2.0 topic)


I forgot to say...I'm using 0.3d RC3.
Reply
#5

sscanf isnt updated to 0.3d.

Masn you cant use it with 0.3d
Reply
#6

So I won't be able to test my script under 0.3d untill the plugin is updated?

Thanks anyway!
Reply
#7

Quote:
Originally Posted by Yvax
Посмотреть сообщение
So I won't be able to test my script under 0.3d untill the plugin is updated?

Thanks anyway!
No, you won't be untill 0.3d (final version) is released. Then sscanf will be probably updated for it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)