22.04.2010, 08:02
Quote:
Originally Posted by [DJ
[SF]Зурэ Яииr ∞™ ]
... also i tried pawn Код:
pawn Код:
|
http://www.compuphase.com/pawn/String_Manipulation.pdf @page 7
Quote:
Compare two strings strcmp(const string1[], const string2[], bool: ignorecase=false, length=cellmax) string1 The first string in the comparison. string2 The first string in the comparison. ignorecase If logically “true”, case is ignored during the compar- ison. length The maximum number of characters to consider for comparison. Returns: −1 if string1 comes before string2, 1 if string1 comes after string2, or 0 if the strings are equal (for the matched length). |
pawn Код:
if(strcmp(IP,pIp) === 0) {
// yay! same!
}
Have fun coding,
Draco