Dialog input text error - 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: Dialog input text error (
/showthread.php?tid=300047)
Dialog input text error -
billy4601 - 28.11.2011
pawn Код:
new idx;
new mailtmp[300];
mailtmp = strtok(inputtext, idx);
PlayerInfo[playerid][pMail] = mailtmp;
format(string, sizeof(string), " inputtext = %d ",PlayerInfo[playerid][pMail]);
SendClientMessage(playerid, COLOR_GRAD1, string);
When i type "SAMP@SAMP.COM" inputtext come out a number, like "94".
how to fix this?
Re: Dialog input text error -
Calgon - 28.11.2011
%d displays digits/integers, you need to replace the 'd' with 's' to show a string.
Re: Dialog input text error -
billy4601 - 28.11.2011
oops, I should know that.
thx for help