Array Problem?
#2

You should use strcmp to compare two string like you did,
try this:
Код:
cmd(test, playerid, params[])
{
    for(new i=0; i < MAX_OWNEDVEHICLES; i++)
    {
        if(!strcmp(VehicleOwner[i], PlayerName(playerid), true)) // This is the error line
	{
            // ...
	}
    }
}
Reply


Messages In This Thread
Array Problem? - by Yuup - 23.05.2013, 16:57
Re: Array Problem? - by Swimor - 23.05.2013, 17:11
Re: Array Problem? - by Yuup - 23.05.2013, 17:14

Forum Jump:


Users browsing this thread: 1 Guest(s)