Vehicle Windows
#5

Quote:
Originally Posted by lwilson
Посмотреть сообщение
Once I put the code to OnPlayerText my pawno stops working.
Yes because you made an bracket mistake, write it like this:

Код:
new v = GetPlayerVehicleID(playerid);
if(v && !IsABike(v)) //So only if he is in a vehicle and its not a bike
{
    format(string, sizeof(string), "%s says %s: %s", sendername, (!window{v})?("[Windows Shut]"):("[Windows Down]"),text);
    ProxDetector(20.0, playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
    return 0;
}
if(gPlayerLogged{playerid} != 1)
{
    SendClientMessageEx(playerid, COLOR_RED, "You are not logged in.");
    return 0;
}
Reply


Messages In This Thread
Vehicle Windows - by lwilson - 19.03.2015, 09:33
Re: Vehicle Windows - by CalvinC - 19.03.2015, 09:41
AW: Vehicle Windows - by Kaliber - 19.03.2015, 09:42
Re: Vehicle Windows - by lwilson - 19.03.2015, 09:59
AW: Re: Vehicle Windows - by Kaliber - 19.03.2015, 10:02

Forum Jump:


Users browsing this thread: 2 Guest(s)