Help please Big Problem
#1

i would really would liek to fix this problem please help!!

PHP код:
new string[56];
     new 
newcar GetPlayerVehicleID(playerid);
    if(
IsAnOwnableCar(newcar) && CarInfo[newcar][cOwned] !=1)
    {
        
format(string,sizeof(string),"Vehicle registered to %s",CarInfo[newcar][cOwner]);
        
SendClientMessage(playeridCOLOR_WHITEstring);
    } 
Reply
#2

In that script are you saying if it's NOT owned? That's what it seems. Checking if it's ownable and if the car owned doesn't equal 1, usually meaning the opposite.
Reply
#3

no work i tried with 0 too no work ((
Reply
#4

And what exactly is the problem?
Reply
#5

i cant see the onplayerentervehicle the message only to owned cars..
Reply
#6

GetPlayerVehicleID(playerid) don't work in OnPlayerEnterVehicle, use OnPlayerStateChange !
Reply
#7

Are you saving the CarInfo[newcar][cOwner] to a name? As in GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s", pName) and then setting CarInfo[newcar][cOwner] = string;
Reply
#8

it is onplayerstatechange i want at onplayerentervehicle
Reply
#9

can some one figur how to do it??
Reply
#10

Looks like it'll have to be OnPlayerStateChange. Basically, if they become PLAYER_STATE_DRIVER, do your normal check to see if the car's owned, and it should work just like that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)