Jump to content
  • 0

Problema submittohelpersandadmins


mihai1122

Question

Problema intalnita (descriere):Nu stiu cum sa explic, dar am incercat sa fac ceva de genul, cand cineva foloseste o comanda ( comanda de admin sau helper) sa se trimita la toti helperii sau adminii online. cum ar venii submitToHelpersAndAdmins.
Ero(area / rile) / warning-(ul / urile): 

C:\Users\Mihai\Desktop\WiDuAlK\gamemodes\WiD.pwn(437) : error 035: argument type mismatch (argument 1)
C:\Users\Mihai\Desktop\WiDuAlK\gamemodes\WiD.pwn(514) : error 035: argument type mismatch (argument 3)
C:\Users\Mihai\Desktop\WiDuAlK\gamemodes\WiD.pwn(519) : error 035: argument type mismatch (argument 3)
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.


Liniile de cod / sursa / script-ul(obligatoriu): Linia 437 : 

submitToHelpersAndAdmins(string1, COLOR_RED);

Linia 514:

SendClientMessage(string, color, string);

Linia 519

SendClientMessage(string, color, string);

 
Imagini / Video (optional):Nu este nevoie.
Ati incercat sa rezolvati singur?: Da, am incercat si nu am reusit. Am incercat sa adaug stock submitToHelpersAndAdmins(playerid, color, string) // si nu a mers, am incercat si alte chestii .

 Linia 514 si linia 519 sunt acceleasi. Tot stock-ul :

stock submitToHelpersAndAdmins(string, color)
{

	foreach(Player, x)
	{
		if(P_Data[x][pAdmin] >= 1)
		{
			PlayerPlaySound(x,1056,0.0,0.0,0.0);
			SendClientMessage(string, color, string);
		}
		else if(P_Data[x][pHelper] >= 1)
		{
			PlayerPlaySound(x,1056,0.0,0.0,0.0);
			SendClientMessage(string, color, string);
		}
	}
	return 1;
}

 

<a href="http://www.game-state.eu/89.33.242.212:7777/"><img src="http://www.game-state.eu/89.33.242.212:7777/350x20_FFFFFF_FFFFFF_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0



stock submitToHelpersAndAdmins(string[], color)
{

    foreach(Player, x)
    {
        if(P_Data[x][pAdmin] >= 1)
        {
            PlayerPlaySound(x,1056,0.0,0.0,0.0);
            SendClientMessage(x, color, string);
        }
        else if(P_Data[x][pHelper] >= 1)
        {
            PlayerPlaySound(x,1056,0.0,0.0,0.0);
            SendClientMessage(x, color, string);
        }
    }
    return 1;
}

  • Upvote 1
Link to comment
Share on other sites

  • 0

Multumesc frumos, dar acum am alta problema....

 

Cand pornesc serverul imi apare la Mode Unknown. 

 

 

Tin sa mentionez ca mi-am reinstalat windows-ul inainte si am salvat gamemode-ul (e unul facut de la 0, doar ca am pornit cu sistem de register si login de la WiDu) si aseara am vrut sa fac asta cu submit, si nu pornisem serveru, si acum am vazut mode unknwon.

 

Stie cineva cum rezolv?

---------

 

T/C . Am rezolvat. 

 

Am instalat microsoft visual 2005, 2008, 2010, 2012, 2015, am sters mysql.so si .dll si le-am luat de la blueg de pe github.

 

Edited by mihai1122

<a href="http://www.game-state.eu/89.33.242.212:7777/"><img src="http://www.game-state.eu/89.33.242.212:7777/350x20_FFFFFF_FFFFFF_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

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.