Jump to content

[REZOLVAT] Eroare comanda /pc


CoKKeAdv
 Share

Recommended Posts

Username:CoKKeAdv
Problema întălnită:Primesc o gramada de erori la compilare.
Detalii despre problemă:Comanda

-CMD:pc(playerid,params[])
{
    new string[250],result[250];
    if(PlayerInfo[playerid][pPremiumAccount] == 0) return 1;
    if(sscanf(params, "s[250]",result)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: {FFFFFF}/pc <text>");
    if(FaceReclama(result)) return Reclama(playerid, result);
    format(string, sizeof(string), "(/pc) Premium %s: %s", GetName(playerid), result);
    foreach(Player, i) {
        if(IsPlayerConnected(i) && PlayerInfo[pPremiumAccount] == 1) {
            MesajLung(i, 0x69C0FFFF, string);
        }
    }
    return 1;
}

Ce ai încercat să faci înainte să postezi?:Sa adaug comanda /pc - premium chat
Cod sursă (recomandat pastebin.com) :https://imgur.com/a/yUTU2pU
Alte detalii:Sper sa stiti si voi sa rezolvati , din cate stiu , daca ai +20 erori nu ai inchis undeva ceva , dar eu nu imi dau seama. 

Link to comment
Share on other sites

Acum 13 ore, AleksandruAdv a spus:

Nu ai definit CreateVehicleEx si GetPlayerCash, inloc de CreateVehicleEx pui CreateVehicle, inloc de GetPlayerCash pui GetPlayerMoney, apesi CTRL + H sa le faci mai repede.

Le am inlocuit pe toate dar imi da aceleas erori.

Link to comment
Share on other sites

Acum 13 ore, CoKKeAdv a spus:

Username:CoKKeAdv
Problema întălnită:Primesc o gramada de erori la compilare.
Detalii despre problemă:Comanda

-CMD:pc(playerid,params[])
{
    new string[250],result[250];
    if(PlayerInfo[playerid][pPremiumAccount] == 0) return 1;
    if(sscanf(params, "s[250]",result)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: {FFFFFF}/pc <text>");
    if(FaceReclama(result)) return Reclama(playerid, result);
    format(string, sizeof(string), "(/pc) Premium %s: %s", GetName(playerid), result);
    foreach(Player, i) {
        if(IsPlayerConnected(i) && PlayerInfo[pPremiumAccount] == 1) {
            MesajLung(i, 0x69C0FFFF, string);
        }
    }
    return 1;
}

Ce ai încercat să faci înainte să postezi?:Sa adaug comanda /pc - premium chat
Cod sursă (recomandat pastebin.com) :https://imgur.com/a/yUTU2pU
Alte detalii:Sper sa stiti si voi sa rezolvati , din cate stiu , daca ai +20 erori nu ai inchis undeva ceva , dar eu nu imi dau seama. 

incearca asta https://pastebin.com/n8u5ge6z

Link to comment
Share on other sites

YCMD:pc(playerid, params[], help) {
	new string[250],result[250];
	if(PlayerInfo[playerid][pPremiumAccount] == 0 && PlayerInfo[playerid][pAdmin] == 0) return 1;
	if(togpremium[playerid] == 1) return 1;
	if(sscanf(params, "s[250]",result)) return SCM(playerid, COLOR_GREY, "USAGE: {FFFFFF}/pc <text>");
	if(FaceReclama(result)) return Reclama(playerid, result);
	if(PlayerInfo[playerid][pPremiumAccount] == 1) format(string, sizeof(string), "(/pc) Premium %s: %s", GetName(playerid), result);
	else format(string, sizeof(string), "(/pc) Admin %s: %s", GetName(playerid), result);
	foreach(Player, i) {
		if(IsPlayerConnected(i) && PlayerInfo[i][pPremiumAccount] == 1 || PlayerInfo[i][pAdmin] > 0) {
			if(togpremium[i] == 0) MesajLung(i, 0x6792A1FF, string);
		}
	}
	return 1;
}

 

imageproxy.php?img=&key=b8a91ce523ce1930https://i.imgur.com/J0QdcYL.png[/img]

Salut, cauti un server de samp pe care sa ai o sansa la functie? Atunci rpg.apollonir.ro este exact ce cauti! Avem sisteme asemanatoare B-Hood (Brother Hood)! Poti intra pe serverul de discord al comunitatii pentru a fii la curent cu tot ce se intampla! Server Discord: https://discord.gg/eMVDrFv Home: www.apollonir.ro Forum: forum.apollonir.ro Panel: apollonir.ro/panel

Link to comment
Share on other sites

Acum 14 ore, VolticHD a spus:

YCMD:pc(playerid, params[], help) {
	new string[250],result[250];
	if(PlayerInfo[playerid][pPremiumAccount] == 0 && PlayerInfo[playerid][pAdmin] == 0) return 1;
	if(togpremium[playerid] == 1) return 1;
	if(sscanf(params, "s[250]",result)) return SCM(playerid, COLOR_GREY, "USAGE: {FFFFFF}/pc <text>");
	if(FaceReclama(result)) return Reclama(playerid, result);
	if(PlayerInfo[playerid][pPremiumAccount] == 1) format(string, sizeof(string), "(/pc) Premium %s: %s", GetName(playerid), result);
	else format(string, sizeof(string), "(/pc) Admin %s: %s", GetName(playerid), result);
	foreach(Player, i) {
		if(IsPlayerConnected(i) && PlayerInfo[i][pPremiumAccount] == 1 || PlayerInfo[i][pAdmin] > 0) {
			if(togpremium[i] == 0) MesajLung(i, 0x6792A1FF, string);
		}
	}
	return 1;
}

 

De ce primesc aceste erori? Ce trebuie sa mai adaug in gamemode ? E gamemode Burned daca ai nevoie de asta,ca sa iti dai seama.

 

C:\Users\BesTy\Desktop\programe\test\gamemodes\test.pwn(25723) : error 017: undefined symbol "togpremium"
C:\Users\BesTy\Desktop\programe\test\gamemodes\test.pwn(25723) : warning 215: expression has no effect
C:\Users\BesTy\Desktop\programe\test\gamemodes\test.pwn(25723) : error 001: expected token: ";", but found "]"
C:\Users\BesTy\Desktop\programe\test\gamemodes\test.pwn(25723) : error 029: invalid expression, assumed zero
C:\Users\BesTy\Desktop\programe\test\gamemodes\test.pwn(25723) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
 

Link to comment
Share on other sites

Ai tw?

Acum 2 ore, CoKKeAdv a spus:

Uite , la comanda ta  nu am primit decat 3 warning , defapt am primit o eroare,si dupa am definit PremiumChat.

Acum cand tastez in joc /pc si scriu ceva,nu se trimite.

Daca imi dau set premium 0 , primesc eroarea, dar in rest cand am premium , nu se trimite mesajul.

 

imageproxy.php?img=&key=b8a91ce523ce1930https://i.imgur.com/J0QdcYL.png[/img]

Salut, cauti un server de samp pe care sa ai o sansa la functie? Atunci rpg.apollonir.ro este exact ce cauti! Avem sisteme asemanatoare B-Hood (Brother Hood)! Poti intra pe serverul de discord al comunitatii pentru a fii la curent cu tot ce se intampla! Server Discord: https://discord.gg/eMVDrFv Home: www.apollonir.ro Forum: forum.apollonir.ro Panel: apollonir.ro/panel

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...