Argument type mismatch.
#1

This is the code:
Код:
	if(dialogid == DIALOG_HSHOP_PRIVATEFREQ)
	{
		if(response)
		{
			new user_freq = strval(inputtext);
			new user_done_freq = strlen(user_freq);
			if(user_done_freq < 1 || user_done_freq > 7) return SCM(playerid, -1, "Frecventa trebuie sa fie intre 1 si 7 caractere.");
			OnPlayerGetFreeFreq(playerid, user_freq);
		}
	}
I get the error for this line:
Код:
new user_done_freq = strlen(user_freq);
Reply
#2

You're trying to get the string length of a integer. I think you're trying to achieve this:

pawn Код:
new user_freq = strval(inputtext); // This gets the numeric value of a string
new user_done_freq = strlen(inputtext); // This gets the length of a string.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)