10.04.2010, 08:18
Use strcmp for comparing strings
https://sampwiki.blast.hk/wiki/Strcmp
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!");
}
}