OnPlayerEnterVehicle and ServerSided
#1

Hello guys today i have 2 problems that i want to solve.

1. This is what i have at public OnPlayerEnterVehicle

PHP код:
public OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
       
    new 
car gLastCar[playerid];
    if(
IsPlayerConnected(playerid))
     {
        if (
gGas[playerid] == 0)
        {
            
gGas[playerid] = 1;
            
GameTextForPlayer(playerid"~n~~n~~n~~n~~n~~n~~n~~p~Fuel Info on"50005);
            
PlayerPlaySound(playerid11450.00.00.0);
        }
            if(
Gas[car] < 100) { Gas[car] = 100; }
        }
        
  {
     
SendClientMessage(playerid,0x00FF80FF,"Te rugam sa iti pui centura folosind /centura pentru un drum mai bun!");
   }
   
// HERE IS THE PROBLEM 
    
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 423)
    {
        
SendClientMessage(playeridCOLOR_RED"{6EF29C}Scrie /ice pentru a incepe sa distribui inghetata ! ");
    }
   
        return 
1;

The problem is that when someone enters a vehicle with model 423,the message is not send.Nothing happens..

how can i fix this?

2.I tried to make my money server-sided based,i tried some includes,some tutorials and no one worked.The compiler crash or..when it compiles,the server won-t start or the money does not work.
Can you give me an up to date include or giving me some tips?
Thanks in advance.
Reply


Messages In This Thread
OnPlayerEnterVehicle and ServerSided - by PepsiCola23 - 06.07.2015, 13:56
Re: OnPlayerEnterVehicle and ServerSided - by JaydenJason - 06.07.2015, 14:03
Re: OnPlayerEnterVehicle and ServerSided - by PepsiCola23 - 06.07.2015, 15:01
Re: OnPlayerEnterVehicle and ServerSided - by PepsiCola23 - 07.07.2015, 14:40
Re: OnPlayerEnterVehicle and ServerSided - by PepsiCola23 - 07.07.2015, 20:18

Forum Jump:


Users browsing this thread: 1 Guest(s)