19.01.2012, 04:58
Try this. Should work.
If not, there is a INI parsing problem I guess.
pawn Код:
new PlayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
new str[128];
new Vehicle = GetPlayerVehicleID(playerid);
format(str, sizeof(str), "/vehicles/%d", Vehicle);
new ow[MAX_PLAYER_NAME];
format(ow, sizeof(ow), "%s", dini_Get(str,"ownername"));
if( (fexist(str)) && (!strcmp(PlayerName,ow,true)))
SendClientMessage(playerid,COLOR_WHITE,"You have entered your vehicle");
else
SendClientMessage(playerid,COLOR_WHITE,"this is not your vehicle");