Jump to content
  • 0

Problema Compilare


MrAndrei

Question

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.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

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.

Link to comment
Share on other sites

  • 0

Pune comanda deaspura acestei linii public OnPlayerCommandTExt

Comanda trebuie pusa inainte de orice public nu trebuie in el e ca un stock comanda insasi e un public

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

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.