SA-MP Forums Archive
strcmp - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: strcmp (/showthread.php?tid=209090)



strcmp - armyoftwo - 09.01.2011

pawn Код:
if(strcmp(ip, load[3], true, 15) == 0) {
Both strings are the same (ip, load[3]), but it doesn't execute further?


Re: strcmp - JaTochNietDan - 09.01.2011

Why bother specifying a length? Also the maximum length of an IP address is 16 characters, so yeah...


Re: strcmp - Joe Staff - 09.01.2011

In that case you won't need 'true' or '15'