Im getting errors with a piece of code
#2

Use strcmp for comparing strings
https://sampwiki.blast.hk/wiki/Strcmp

pawn Код:
if (GetVehicleModel(vehicleid)==CarInfo[i][ModelID])
{
    if (strcmp(CarInfo[i][OwnerName], PlayerName(playerid)) != 0)
    {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid,0xAA000AA,"Acces Denied!");
    }
}
Reply


Messages In This Thread
Im getting errors with a piece of code - by Micko9 - 10.04.2010, 08:13
Re: Im getting errors with a piece of code - by dice7 - 10.04.2010, 08:18

Forum Jump:


Users browsing this thread: 1 Guest(s)