06.07.2015, 13:56
Hello guys today i have 2 problems that i want to solve.
1. This is what i have at public OnPlayerEnterVehicle
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.
1. This is what i have at public OnPlayerEnterVehicle
PHP код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
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", 5000, 5);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.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(playerid, COLOR_RED, "{6EF29C}Scrie /ice pentru a incepe sa distribui inghetata ! ");
}
return 1;
}
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.