Jump to content
  • 0

Problema comanda /cratesforall


KenzonAdv

Question

13 answers to this question

Recommended Posts

  • 0
Just now, Azze47 said:

Pe gm burned?

 

CMD:createsforall(playerid)

{

foreach(new i : Player)

{

//variabila ta

Users[crates] ++ sau += 1;

SendClientMessageToAll(-1, "Administratorul X a dat tuturor playeriilor online +1 crates");

}

return true;

}

Link to comment
Share on other sites

  • 0

PlayerInfo[Crates] ++;

 

Defineste (PlayerInfo) cum ai tu trecut in gm ala

i = selectia de playeri online (toti)

Crates = defineste cu crates care trebuie sa le trimita jucatorilor

++ (da un crates jucatorilor / +1)

+= 1; = (la fel ca si ++);

Link to comment
Share on other sites

  • 0

CMD:cratesforall(playerid)

{

if(PlayerInfo[playerid][Admin] < 6) return SendClientMessage(playerid, -1, "Nu esti administrator pentru a folosi aceasta comanda!");

new String[128];

format(String, sizeof(String), "(( %s a dat tututor cate un crates [modifica tu crates] ))", PlayerName(playerid));

SendClientMessageToAll(-1, String);

PlayerInfo[pCrates][2] ++;

return true;

}

Edited by Iulian1337
Link to comment
Share on other sites

  • 0
7 minutes ago, Iulian1337 said:

CMD:cratesforall(playerid)

{

if(PlayerInfo[playerid][Admin] < 6) return SendClientMessage(playerid, -1, "Nu esti administrator pentru a folosi aceasta comanda!");

new String[128];

format(String, sizeof(String), "(( %s a dat tututor cate un crates [modifica tu crates] ))");

SendClientMessageToAll(-1, String);

PlayerInfo[pCrates][2] ++;

return true;

}

Mersii bro vad ca s-a compilat cu scces Mersii frumos #RESPECT

Link to comment
Share on other sites

  • 0
2 hours ago, Azze47 said:

Mersii bro vad ca s-a compilat cu scces Mersii frumos #RESPECT

Salut!

Nu cred ca iti merge in server, chiar daca  s-a complicat cu succes!

Linia "PlayerInfo[pCrates][2] ++;"  trebuie sa fie "foreach(new l: Player) PlayerInfo[l][pCrates][2]++;

Asa ar trebui sa functioneze corect comanda in-game.

350x20_FFFFFF_FFFFFF_000000_000000.png

Link to comment
Share on other sites

  • 0
3 hours ago, Voller. said:

Salut!

Nu cred ca iti merge in server, chiar daca  s-a complicat cu succes!

Linia "PlayerInfo[pCrates][2] ++;"  trebuie sa fie "foreach(new l: Player) PlayerInfo[l][pCrates][2]++;

Asa ar trebui sa functioneze corect comanda in-game.

Imi poti face tu comanda ca baiatu' de sus mi a dat doar ca imi da doar mie crates ul nu si celor lanti playeri

 

Link to comment
Share on other sites

  • 0

uite ce mi da

 Modules\Crates.pwn(7) : error 001: expected token: ";", but found "�"
Modules\Crates.pwn(7) : error 029: invalid expression, assumed zero
Modules\Crates.pwn(7) : error 029: invalid expression, assumed zero
Modules\Crates.pwn(7) : fatal error 107: too many error messages on one line

Link to comment
Share on other sites

  • 0
1 hour ago, Azze47 said:

uite ce mi da

 Modules\Crates.pwn(7) : error 001: expected token: ";", but found "�"
Modules\Crates.pwn(7) : error 029: invalid expression, assumed zero
Modules\Crates.pwn(7) : error 029: invalid expression, assumed zero
Modules\Crates.pwn(7) : fatal error 107: too many error messages on one line

CMD:cratesforall(playerid)
{
	if(PlayerInfo[playerid][Admin] < 6) return SendClientMessage(playerid, -1, "Nu esti administrator pentru a folosi aceasta comanda!");
	//--------------------------------------------------------------------------
	new String[128]; format(String, sizeof(String), "(( %s a dat tututor cate un crates [modifica tu crates] ))"), SendClientMessageToAll(-1, String);
	//--------------------------------------------------------------------------
	foreach(new l: Player) PlayerInfo[l][pCrates]++;
	//--------------------------------------------------------------------------
	return 1;
}

Try this should work.

350x20_FFFFFF_FFFFFF_000000_000000.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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