22.11.2011, 18:11
It doesnt work, it doesnt matter what your name is and the name in file, when you enter a vehicle it just comes up with that message, and also it comes up on all the cars even the ones you cant buy that are not in the file, any ideas?
This is what im using
This is what im using
pawn Code:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
new file[256], name[24];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),"Cars/%s.ini",name);
if(!strcmp(VehicleInfo[playerid][Owner], "name", true))
{
SendClientMessage(playerid, COLOR_ORANGE, "YOUR CAR");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_ORANGE, "NOT YOUR CAR");
}
return 1;
}