Jump to content

Question

7 answers to this question

Recommended Posts

  • 0
Posted

Și...care ar fi problema ? Ca doar așa nu cred ca te ajuta cineva.

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

  • 0
Posted
function Checkstatuspet(playerid) {
    SCMEx(playerid, COLOR_YELLOW, "* Nivelul animalului tau de companie este: {FF1302}%d.{FFFFFF}",PlayerInfo[playerid][pPetLevel]);
    SCMEx(playerid, COLOR_YELLOW, "Pentru al avansa trebuie sa detii 120 pet points, tu ai: {FF1302}%d.{FFFFFF}", PlayerInfo[playerid][pPetPoints]);
    SCM(playerid, COLOR_YELLOW, "Daca pet-ul tau are level mai mic de 3 vei primi doar +1RP.");
    SCM(playerid, COLOR_YELLOW, "Daca pet-ul tau are level mai mare de 3 vei primi +2RP si o suma de bani.");
    return 1;
}

 

  • 0
Posted
7 hours ago, Ph0eniX said:

Și...care ar fi problema ? Ca doar așa nu cred ca te ajuta cineva.

uitate la paste bin am pus erorile si comanda

  • 0
Posted

Eroare o vad aici 

  1. comanda:YCMD:petmenu(playerid, params[], help) {
 
Modifica in YCMD:petmenu(playerid, params[], help) {
  • 0
Posted
10 hours ago, Nica_Mihai said:

Sigur folosesti YCMD??
Verifica in gm daca folosesti YCMD / CMD

Daca folosesti cmd pune:  CMD:petmenu(playerid, params[]) {

folosesc YCMD

  • 0
Posted
La 29.03.2019 la 21:35, ManoleAlex a spus:

folosesc YCMD


YCMD:petmenu(playerid, params[], help) {
    if(DeelayCommand[playerid][0] != 0) return DeelayTime(playerid, 0);
    DeelayCommand[playerid][0] = 3;
    new string[128], string2[128];
    if(PlayerInfo[playerid][pPet] == 0) return SCM(playerid, -1, "{cc0e0e}(Pet){FFFFFF}: Nu detii un pet!");
    if(PlayerInfo[playerid][pPetStatus] == 0) format(string, sizeof(string),"Status\t{ff0000}Adormit\nNume pet\t{26B309}%s\nBeneficii pet\nCreste pet\t%d/120 pet points",PlayerInfo[playerid][pPetName],PlayerInfo[playerid][pPetPoints]);
    else format(string, sizeof(string),"Status\t{1AAB07}Trezit\nNume pet\t{26B309}%s\nBeneficii pet\nCreste pet\t%d/120 pet points",PlayerInfo[playerid][pPetName],PlayerInfo[playerid][pPetPoints]);
    strcat(string2, string);
    ShowPlayerDialog(playerid, DIALOG_PET, DIALOG_STYLE_TABLIST, "Pet Menu", string2, "Select", "Cancel");
    return 1;
}
function Checkstatuspet(playerid) {
    SCMEx(playerid, COLOR_WHITE, "{cc0e0e}(Pet){FFFFFF}: Nivelul animalului tau de companie este: {FF1302}%d.{FFFFFF}",PlayerInfo[playerid][pPetLevel]);
    SCMEx(playerid, COLOR_WHITE, "{cc0e0e}(Pet){FFFFFF}: Pentru al avansa trebuie sa detii 120 pet points, tu ai: {FF1302}%d.{FFFFFF}", PlayerInfo[playerid][pPetPoints]);
    SCM(playerid, COLOR_WHITE, "{cc0e0e}(Pet){FFFFFF}: Daca pet-ul tau are level mai mic de 3 vei primi doar +1RP.");
    SCM(playerid, COLOR_WHITE, "{cc0e0e}(Pet){FFFFFF}: Daca pet-ul tau are level mai mare de 3 vei primi +2RP si o suma de bani.");
    return 1;
}

function RemovePet(playerid) {
    PlayerInfo[playerid][pPetStatus] = 0;
    DestroyDynamic3DTextLabel(Pet[playerid]);
    if(IsPlayerAttachedObjectSlotUsed(playerid, 6)) RemovePlayerAttachedObject(playerid, 6);
    Update(playerid, pPetStatusx);
    return 1;
}

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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.