Need help with Strcmp :S
#5

That is also correct, but I doubt it would compile (in theory it should). The only problem is that Strcmp can also return -1 (string2 is greater then string1 (it returns 1 on the opposite)), so it wouldn't work in all cases where the string wouldn't be the same.

pawn Код:
if(!strcmp(GetName(playerid), dini_Get(string, "Owner"), true))
{
    ...
}
Is the correct form for checking if the players name matches the owners one. Check if it saves in the file correctly
Reply


Messages In This Thread
Need help with Strcmp :S - by [Nino] - 05.07.2010, 16:54
Re: Need help with Strcmp :S - by woot - 05.07.2010, 16:56
Re: Need help with Strcmp :S - by DeathOnaStick - 05.07.2010, 17:00
AW: Need help with Strcmp :S - by [Nino] - 05.07.2010, 17:06
Re: Need help with Strcmp :S - by dice7 - 05.07.2010, 17:07
Re: Need help with Strcmp :S - by -Sneaky- - 05.07.2010, 17:11
AW: Need help with Strcmp :S - by [Nino] - 05.07.2010, 17:25
Re: Need help with Strcmp :S - by dice7 - 05.07.2010, 17:29
AW: Need help with Strcmp :S - by [Nino] - 05.07.2010, 17:37
Re: Need help with Strcmp :S - by -Sneaky- - 05.07.2010, 17:43

Forum Jump:


Users browsing this thread: 5 Guest(s)