SA-MP Forums Archive
Player Age Dialog - 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: Player Age Dialog (/showthread.php?tid=487621)



Player Age Dialog - Ryan_Bowe - 14.01.2014

....


Re: Player Age Dialog - ikey07 - 14.01.2014

if(strlen(inputtext) < 18 || strlen(inputtext) > 100) return ShowDialog(playerid, 7);

change to

if(strval(inputtext) < 18 || strval(inputtext) > 100) return ShowDialog(playerid, 7);


even more, put new string = strval(inputtext); above that compare and use

if(string < 18 || string > 100) return ShowDialog(playerid, 7);


Re : Player Age Dialog - S4t3K - 14.01.2014

Your format should be like this (idk, i don't use to use mySQL)

PHP код:

format
(querysizeof(query), "UPDATE `playerdata` SET sex = '%d', age = '%d' WHERE username = '%s'"PlayerData[playerid][pSex], string); 
ShowDialog also doesn't exist. Use ShowPlayerDialog instead (except if you defined it before, in this situation, sorry )


Re: Re : Player Age Dialog - Ryan_Bowe - 14.01.2014

....