question about stings(cells) - 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: question about stings(cells) (
/showthread.php?tid=633409)
question about stings(cells) -
LazzyBoy - 30.04.2017
hey there,
okay so i've got couple of commands on server that has low string cells [new string[30];] for example now when player uses this command that has string 30 and if he does write for example "kjkljklhjlhklhksahtg"or any other thing but like long characters it will crash the server but if i raise string cells it wont crash , can you help me out ?
Re: question about stings(cells) -
J0sh... - 30.04.2017
Check the length of the user input
PHP код:
if(strlen(blah) > 30) return 1;
Re: question about stings(cells) -
iLearner - 30.04.2017
Chat messages are usually to be set at 128 cells.