SA-MP Forums Archive
Escape - 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: Escape (/showthread.php?tid=601198)



Escape - CSCripMa - 18.02.2016

Hi,

You have to provide the size (max_len) by yourself if you use an enum-array as destination.

Can give example how look using enum_array as destination

If the destination cannot hold the whole text escaped, the function will silently fail and leave destination unchanged.

I get error or nothing in logs?


Re: Escape - BiosMarcel - 18.02.2016

So you want to know what happens if u try to put in a too long string into an enum array, or did i missunderstand?

Example?:

PHP код:
enum test
{
    
String1[4]
    
String2[5]
}
new 
testtest[MAX_PLAYERS][test];
testest[1][Strign1] = "Hey this is a loooooong text"