ZCMD string problem
#8

Almost.

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

This function returns difference between two strings. If the return is 0, it means they are equal (might be case insensitive). So, you need to check for !strcmp(s, "Invite"), or strcmp(s, "Invite") == 0.

If you want to work with numbers, use y_stringhash
Reply


Messages In This Thread
ZCMD string problem - by Lirbo - 05.05.2015, 09:28
Re: ZCMD string problem - by DarkLouis - 05.05.2015, 09:38
Re: ZCMD string problem - by Airman123 - 05.05.2015, 09:39
Re: ZCMD string problem - by Lirbo - 05.05.2015, 09:41
Re: ZCMD string problem - by DarkLouis - 05.05.2015, 09:42
Re: ZCMD string problem - by DarkLouis - 05.05.2015, 09:44
Re: ZCMD string problem - by Lirbo - 05.05.2015, 09:44
Re: ZCMD string problem - by Misiur - 05.05.2015, 09:44
Re: ZCMD string problem - by Lirbo - 05.05.2015, 09:49

Forum Jump:


Users browsing this thread: 1 Guest(s)