Need help with Strcmp :S
#8

pawn Код:
printf("%s", GetName(playerid));
                printf("%s", dini_Get(string, "Owner"));
                if(!strcmp(GetName(playerid), dini_Get(string, "Owner"), true))
                {
                    if(CarInfo[CarID][Engine] == 0)
                    {
                        CarInfo[CarID][Engine] = 1;
                        TogglePlayerControllable(playerid, 1);
                    }
                }
                else
                {
                    SendClientMessage(playerid, Red, "You have no keys for this car.");
                }
Try this to see if the printed names match. Because if they do, then I have no idea why strcmp fails
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: 2 Guest(s)