Car System Problem
#1

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
    {
    for(new i = 0; i < MAX_CARS;i++)
    {
                     new pName[MAX_PLAYER_NAME];
                     GetPlayerName(playerid,pName,24);
                     if(IsPlayerInVehicle(playerid,CInfo[i][CarID]))
                     {
                           if(CInfo[i][Owned] == 1 && strcmp(CInfo[i][Owner],pName) != 0)
                           {
                                   SendClientMessage(playerid,-1,"You are not the owner of this car!");
                                   ClearAnimations(playerid);
                           }
                     }
    }
    }
}
This is not working i wonder why its not working.Can anybody help me with it.
Reply
#2

Sorry for double post.

Forgot to post the problem.


When you get in the vehicle it isn't saying Vehicle Owned by Another player.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)