sscanf warnings
#4

Quote:
Originally Posted by Arthur Kane
Посмотреть сообщение
Your first parameter.
Код:
S[100]
https://sampforum.blast.hk/showthread.php?tid=570927
Код:
S(string)[length]			Optional string
Like the warning shows, there's no default value found.

Change S[100] to S()[100] and see if the results are different.
Thank you very much, I also encountered a similar problem look at this code.

Код:
CMD:editglocker(playerid, params[])
{
	if (PlayerInfo[playerid][pAdmin] >= 1337 || PlayerInfo[playerid][pGangModerator] >= 1)
	{
		new string[128], choice[32], id, amount;
		if(sscanf(params, "s[32]dD", choice, id, amount))
Sorry for asking too much because I am not a scripter and I don't know how to deal with scripting errors.
Reply


Messages In This Thread
sscanf warnings - by roncohen7 - 25.07.2017, 09:18
Re: sscanf warnings - by Kane - 25.07.2017, 09:31
Re: sscanf warnings - by iLearner - 25.07.2017, 09:46
Re: sscanf warnings - by roncohen7 - 25.07.2017, 09:50
Re: sscanf warnings - by iLearner - 25.07.2017, 09:51
Re: sscanf warnings - by jlalt - 25.07.2017, 09:56
Re: sscanf warnings - by roncohen7 - 27.07.2017, 09:47

Forum Jump:


Users browsing this thread: 2 Guest(s)