Array, Strings problem
#2

To see if one string equals another, you should use strcmp.

https://sampwiki.blast.hk/wiki/Strcmp

if(!strcmp(playerhouse[uhousesn][house_owner], "niekas")) {

By default it is case senstive, to make it "insensitive", use:

if(!strcmp(playerhouse[uhousesn][house_owner], "niekas", true)) {

_________________________________________________

Array information:

https://sampwiki.blast.hk/wiki/Scripting_Basics#Arrays
https://sampwiki.blast.hk/wiki/Advanced_Structures
Reply


Messages In This Thread
Array, Strings problem - by Paranoja - 11.08.2009, 09:24
Re: Array, Strings problem - by Weirdosport - 11.08.2009, 09:50
Re: Array, Strings problem - by Paranoja - 11.08.2009, 20:32

Forum Jump:


Users browsing this thread: 1 Guest(s)