Always returns id 65535
#1

Code:
Код:
else if(dialogid == 7)
	{
	    if(response)
	    {
            new string[128], vehicleid;
	        if(sscanf(inputtext, "r", vehicleid)) return Error06
	        format(string, sizeof(string), "-=Stats of vehicleid %d=-",vehicleid);
                SendClientMessage(playerid,COLOR_WHITE,string);
}
}
Result:65535 whatever i put i get this number, how to fix it
Reply
#2

"r" specifier is used for players only (name/id). Use integer type "i" or "d".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)