05.07.2010, 17:07
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.
Is the correct form for checking if the players name matches the owners one. Check if it saves in the file correctly
pawn Код:
if(!strcmp(GetName(playerid), dini_Get(string, "Owner"), true))
{
...
}