Jump to content
  • 0

pomoc Prikaz


Totalka

Dotaz

4 odpovědí na tuto otázku

Recommended Posts

  • 0


forward RepairP(playerid);
public RepairP(playerid)
{
SetPVarInt(playerid, "CanRepair", 1);
return 1;
}

dcmd_repair(playerid, params[])
{
#pragma unused params
if(GetPVarInt(playerid, "CanRepair") == 0) return SendClientMessage(playerid, 0xFF0000AA, "Auto si můžeš opravit jednou za 5 minut!");
SetTimerEx("RepairP", 300000, 0, "i", playerid);
new veh = GetPlayerVehicleID(playerid);
RepairVehicle(veh);
SetPVarInt(playerid, "CanRepair", 0);
SendClientMessage(playerid, 0xFF000AA, "Úspěšně sis opravil auto.");
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(repair, 6, cmdtext);
return 0;
}

 

Edited by SeaS
Link to comment
Share on other sites

  • 0

forward RepairP(playerid);
public RepairP(playerid)
{
    SetPVarInt(playerid, "CanRepair", 1);
    return 1;
}

dcmd_repair(playerid, params[])
{
    #pragma unused params
    if(GetPVarInt(playerid, "CanRepair") == 0) return SendClientMessage(playerid, 0xFF0000AA, "Auto si můžeš opravit jednou za 5 minut!");
    SetTimerEx("RepairP", 300000, 0, "i", playerid);
    RepairVehicle(GetPlayerVehicleID(playerid));
    SetPVarInt(playerid, "CanRepair", 0);
    SendClientMessage(playerid, 0xFF000AA, "Úspěšně sis opravil auto.");
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(repair, 6, cmdtext);
    return 0;
}

Edited by FeedBoss
Link to comment
Share on other sites

  • 0

Ten error tam máš z důvodu že si napsal GetPlayerVehicleId(playerid); přitom je to GetPlayerVehicleID(playerid); Nezapomínej totiž, že jazyk pawna je citlivý na VELKÁ a malá písmena. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...