i tried with and without return 1; --- This way it compiles but it won't do anything
pawn Код:
if(Lukus[playerid] == 1)
{
SendClientMessage(playerid, 0xFF0000FF, "Auto uksed on lukus.");
PutPlayerInVehicle(playerid, vehicleid, GetPlayerVehicleSeat(playerid));
}
This way i get 17 errors..
pawn Код:
if(Lukus[playerid] == 1)
{
SendClientMessage(playerid, 0xFF0000FF, "Auto uksed on lukus.");
PutPlayerInVehicle(playerid, vehicleid, GetPlayerVehicleSeat(playerid));
}
return 1;
}
And this should set Lukus[playerid] = 1;
pawn Код:
case 9,10,11,12,13,14,15:
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Alarm kдivitus ja sa jдid autosse kinni!");
gEngine[playerid] = 0;
SetTimerEx("AutoAlarm", 10000, false, "i", playerid);
Lukus[playerid] = 1;
}
And this one should set Lukus[playerid] = 0;
pawn Код:
public AutoAlarm(playerid)
{
if(IsPlayerConnected(playerid))
{
Lukus[playerid] = 0;
SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Alarm jдi vait ja uksed avanesid imekombel!");
}
}