Jump to content

Recommended Posts

Posted (edited)

Cand am facut comanda /bonus imi apare asa:/

C:\Users\SkyHD\Desktop\SAMP SERVER\gamemodes\zoneplg.pwn(337) : warning 203: symbol is never used: "bonus"

Va rog ajutati-ma dau +1.

Edited by SkyHD
Posted

Iti spune ca nu ai folosit niciodata bonus in gamemode. Adica ai definit bonus, dar nu l-ai folosit. Eventual posteaza aici comanda sa vedem ce nu e in regula daca nu te descurci.

Posted
CMD:bonus(playerid, params[])
{
if(PlayerInfo[playerid][pLevel] == 1)
{
   GivePlayerCash(playerid, 100000);
   PlayerInfo[playerid][pLevel] = 2;
   SendClientMessage(playerid, COLOR_ORANGE, "Ai primit Level UP + 100.000$ !");
}
return 1;
}
  • 2 weeks later...
Posted
CMD:bonus(playerid, params[])
{
	if(PlayerInfo[playerid][pLevel] <= 2)
	{
	    GivePlayerMoney(playerid, 50000000);
	    SetPlayerScore(playerid, 5);
	    SCM(playerid, COLOR_YELLOW, "Ai primit level 5 si $50.000.000, distreaza-te!");
	}
	else
	{
		SCM(playerid, 0xff0000, "Ai primit deja bonus-ul, nu fii bulangiu.");
	}
	

	return 1;
}

Nu stiu daca mai ai nevoie, dar incearca asta ...

NU E DE COMPETENTA MEA SA FAC LUMEA MAI BUNA.

 

Posted

Eroarea aia zice ca nu ai folosit variabila bonus, dar nu este din cauza asta.

Eroarea aia vine de la CMD:bonus deci asta inseamna ca nu ai nici-un procesor de comenzi !

  • 1 year later...
Posted
La 12.07.2019 la 9:58, SkyHD a spus:

Cand am facut comanda /bonus imi apare asa:/

C:\Users\SkyHD\Desktop\SAMP SERVER\gamemodes\zoneplg.pwn(337) : warning 203: symbol is never used: "bonus"

Va rog ajutati-ma dau +1.

Incearca asa: https://pastebin.com/LtDuFD6m

 

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.