SA-MP Forums Archive
Always returns id 65535 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Always returns id 65535 (/showthread.php?tid=575200)



Always returns id 65535 - SandKing94 - 24.05.2015

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


Re: Always returns id 65535 - Konstantinos - 24.05.2015

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