Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Problema Compilare


Question

Posted

Problema intalnita (descriere): Eroare compilare
Ero(area / rile) / warning-(ul / urile): Tocmai m-am apucat de ZCMD, deci sunt incepator. Am creat o comanda , gen [/o] , insa imi da eroare la compilare
Liniile de cod / sursa / script-ul(obligatoriu):

Comanda :

CMD:announce(playerid, params[]) {
    if(playerVariables[playerid][pAdminLevel] >= 1) {
        if(!isnull(params)) {
			GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME);
			format(szMessage, sizeof(szMessage), "(( Announcement from %s: %s ))", szPlayerName, params);
			SendClientMessageToAll(COLOR_LIGHTRED, szMessage);
		}
		else {
		    return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/announce [text]");
		}
	}
	return 1;
}

Erorile :

C:\Users\Andrei\Desktop\WiDuAlK\WiDuAlK\gamemodes\WiD.pwn(145) : error 029: invalid expression, assumed zero
C:\Users\Andrei\Desktop\WiDuAlK\WiDuAlK\gamemodes\WiD.pwn(145) : error 017: undefined symbol "cmd_announce"
C:\Users\Andrei\Desktop\WiDuAlK\WiDuAlK\gamemodes\WiD.pwn(145) : error 029: invalid expression, assumed zero
C:\Users\Andrei\Desktop\WiDuAlK\WiDuAlK\gamemodes\WiD.pwn(145) : fatal error 107: too many error messages on one line


Imagini / Video (optional):-
Ati incercat sa rezolvati singur?: Da, dar fara succes. Gamode-ul este cel default, creat de WiduAlK.

5 answers to this question

Recommended Posts

  • 0
Posted

ai pus include zcmd?

Da, am include ZCMD. L-am descarcat de pe .COM , insa nu stiu daca este cea mai noua versiune.

Comanda am adaugat-o la : public OnPlayerText(playerid, text[])

Am incercat si la : public OnPlayerCommandText(playerid, cmdtext[]) , dar tot la fel.

  • 0
Posted

M-ai facut sa rad cand ai scris ca ai pus la OnPlayerText comanda.

Inlocuieste OnPlayerCommandText cu:

public OnPlayerCommandPerformed(playerid, cmdtext[], success)

Pune #include <zcmd> dupa #include <a_samp>

  • Upvote 1

 

 

Guest
This topic is now closed to further replies.
×
×
  • 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.