strcmp
#7

Quote:
Originally Posted by mkr
Посмотреть сообщение
pawn Код:
for (new i = 0; i < sizeof(CarInfo); i++)
{
    if (strlen(CarInfo[i][vOwner]) && strcmp(CarInfo[i][vOwner],PlayerName(playerid)) == 0)
    {
        return i;
    }
}
Try that.
Didn't work.

Toni, I'm trying to return the ID from the loop where the vOwner and PlayerName match.
Reply


Messages In This Thread
strcmp - by Jack_Leslie - 04.10.2011, 03:46
Re: strcmp - by mkr - 04.10.2011, 04:09
Re: strcmp - by Jack_Leslie - 04.10.2011, 04:12
Re: strcmp - by mkr - 04.10.2011, 04:16
Re: strcmp - by Jack_Leslie - 04.10.2011, 04:18
Re: strcmp - by mkr - 04.10.2011, 04:24
Re: strcmp - by Jack_Leslie - 04.10.2011, 04:31
Re: strcmp - by Toni - 04.10.2011, 04:36
Re: strcmp - by Jack_Leslie - 04.10.2011, 04:38
Re: strcmp - by Toni - 04.10.2011, 04:49

Forum Jump:


Users browsing this thread: 2 Guest(s)