20.01.2013, 09:52
Quote:
pawn Код:
|
Quote:
As far as I'm aware you can't check strings like that, use strcmp instead.
|
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new ownername[50];
new player1;
new owner = AVehicleData[vehicleid][Owner];
GetPlayerName(player1, ownername, sizeof(ownername));
if(!strcmp(owner, "", true)) // I can't put ownername on the ""
{
new string[128];
format(string,sizeof(string), "You are not the owner of this vehicle");
SendClientMessage(playerid, 0x0FF0000AA, string);
}
return 1;
}