Jump to content
  • 0

Comanda /aod...


zroT

Question

14 answers to this question

Recommended Posts

C:\Documents and Settings\Admin.BLACK\Desktop\xGame\gamemodes\xGame.pwn(36352) : error 010: invalid function or declaration

C:\Documents and Settings\Admin.BLACK\Desktop\xGame\gamemodes\xGame.pwn(36354) : error 010: invalid function or declaration

C:\Documents and Settings\Admin.BLACK\Desktop\xGame\gamemodes\xGame.pwn(36356) : error 021: symbol already defined: "GetPlayerName"

C:\Documents and Settings\Admin.BLACK\Desktop\xGame\gamemodes\xGame.pwn(36361) : warning 203: symbol is never used: "pnames"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

3 Errors.

stats.php?page=2&ip=samp.zonek.ro&port=7777
Link to comment
Share on other sites

Guest farse

Agentu,pawncc nu e lua.

Codul e

if(strcmp("/aod",cmdtext,true)==0)
{
new pnames[MAX_PLAYER_NAME]; GetPlayerName(playerid,pnames,sizeof(pnames));
format(pnames,MAX_PLAYER_NAME,"[AOD]%s",pnames);
SetPlayerName(playerid,pnames);
return true;
}

si se pune dupa OnPlayerCommandText(playerid,cmdtext[])\n{

Link to comment
Share on other sites

Am facut comanda si merge 100%

Mai agaugati la inceput new aodtag[MAX_PLAYERS];

if(strcmp(cmd, "/aod", true) == 0)

{

if (PlayerInfo[playerid][pAdmin] >= 1)

{

    if(AdminDuty[playerid] == 0)

    {

                new name[MAX_PLAYER_NAME];

            GetPlayerName(playerid,name,MAX_PLAYER_NAME);

            format(string,sizeof(string),"Adminu %s ID[%d] este acum on duty.",name,playerid);

            SendClientMessageToAll(COLOR_LIGHTBLUE,string);

                AdminDuty[playerid] = 1;

        new setname[16];

        format(setname, sizeof(setname), "%s[AOD]",name);

        if(!strlen(name[11]))

        {

            aodtag[playerid] = 1;

            SetPlayerName(playerid,setname);

        }

                SetPlayerHealth(playerid,9999);

                SetPlayerArmour(playerid,9999);

            }

    else

    {

new name[MAX_PLAYER_NAME];

            GetPlayerName(playerid,name,MAX_PLAYER_NAME);

            format(string,sizeof(string),"Adminu %s ID[%d] este acum off duty.",name,playerid);

            SendClientMessageToAll(COLOR_LIGHTRED,string);

AdminDuty[playerid] = 0;

        new pname[16];

        GetPlayerName(playerid,pname,16);

        strdel(pname, strlen(pname)-5, strlen(pname));

        if(aodtag[playerid] == 1)

        {

            aodtag[playerid] = 0;

            SetPlayerName(playerid,pname);

        }

SetPlayerHealth(playerid,100);

SetPlayerArmour(playerid,0);

    }

}

return 1;

}

i0418xcttya707ofg.jpg

Link to comment
Share on other sites

D:\xGame\pawno\include\utils.inc(52) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\pawno\include\JunkBuster.inc(1855) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\pawno\include\JunkBuster.inc(1880) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\pawno\include\JunkBuster.inc(1917) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\pawno\include\JunkBuster.inc(1972) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\pawno\include\JunkBuster.inc(1997) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\pawno\include\JunkBuster.inc(2032) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\pawno\include\JunkBuster.inc(2047) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\pawno\include\JunkBuster.inc(2072) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\pawno\include\JunkBuster.inc(2092) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\pawno\include\JunkBuster.inc(2324) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\pawno\include\JunkBuster.inc(2388) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\gamemodes\xGame.pwn(1721) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\gamemodes\xGame.pwn(1750) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\gamemodes\xGame.pwn(1810) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\gamemodes\xGame.pwn(1951) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\gamemodes\xGame.pwn(3722) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\gamemodes\xGame.pwn(4447) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\gamemodes\xGame.pwn(5431) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\gamemodes\xGame.pwn(6448) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\gamemodes\xGame.pwn(7690) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\gamemodes\xGame.pwn(7802) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\gamemodes\xGame.pwn(7872) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\gamemodes\xGame.pwn(13508) : warning 225: unreachable code

D:\xGame\gamemodes\xGame.pwn(23716) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\gamemodes\xGame.pwn(31376) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\gamemodes\xGame.pwn(36092) : warning 219: local variable "name" shadows a variable at a preceding level

D:\xGame\gamemodes\xGame.pwn(36463) : error 010: invalid function or declaration

D:\xGame\gamemodes\xGame.pwn(36465) : error 010: invalid function or declaration

D:\xGame\gamemodes\xGame.pwn(36467) : error 010: invalid function or declaration

D:\xGame\gamemodes\xGame.pwn(36470) : error 021: symbol already defined: "GetPlayerName"

D:\xGame\gamemodes\xGame.pwn(36475) : error 021: symbol already defined: "format"

D:\xGame\gamemodes\xGame.pwn(36476) : error 010: invalid function or declaration

D:\xGame\gamemodes\xGame.pwn(36481) : error 021: symbol already defined: "JB_SetPlayerHealth"

D:\xGame\gamemodes\xGame.pwn(36482) : error 021: symbol already defined: "JB_SetPlayerArmour"

D:\xGame\gamemodes\xGame.pwn(36484) : error 010: invalid function or declaration

D:\xGame\gamemodes\xGame.pwn(36486) : error 021: symbol already defined: "name"

D:\xGame\gamemodes\xGame.pwn(36492) : error 021: symbol already defined: "GetPlayerName"

D:\xGame\gamemodes\xGame.pwn(36494) : error 010: invalid function or declaration

D:\xGame\gamemodes\xGame.pwn(36499) : error 021: symbol already defined: "JB_SetPlayerHealth"

D:\xGame\gamemodes\xGame.pwn(36500) : error 021: symbol already defined: "JB_SetPlayerArmour"

D:\xGame\gamemodes\xGame.pwn(36503) : error 010: invalid function or declaration

D:\xGame\gamemodes\xGame.pwn(36506) : warning 203: symbol is never used: "aodtag"

D:\xGame\gamemodes\xGame.pwn(36506) : warning 203: symbol is never used: "name"

D:\xGame\gamemodes\xGame.pwn(36506) : warning 203: symbol is never used: "pname"

D:\xGame\gamemodes\xGame.pwn(36506) : warning 203: symbol is never used: "setname"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

15 Errors.

stats.php?page=2&ip=samp.zonek.ro&port=7777
Link to comment
Share on other sites

if(strcmp(cmd, "/aod", true) == 0)
	{
		if (PlayerInfo[playerid][pAdmin] >= 1)
		{
		    if(AdminDuty[playerid] == 1)
		    {
                       GetPlayerName(playerid, sendername, sizeof(sendername));
			           format(string, sizeof(string), "[Admin Info] %s [ID:%d] is no longer on duty as an admin.", sendername,playerid);
                       SendClientMessageToAll(COLOR_DBLUE,string);
   				       AdminDuty[playerid] = 0;
				       SetPlayerHealth(playerid,100);
				       SetPlayerArmour(playerid,0);
				       SetPlayerToTeamColor(playerid);
			  }

		    else
		    {
                GetPlayerName(playerid, sendername, sizeof(sendername));
		    	format(string, sizeof(string), "[Admin Info] %s [ID:%d] is now on duty as an admin.Please /w him if you need help.",sendername,playerid);
				SendClientMessageToAll(0xFAAFBEFF,string);
				AdminDuty[playerid] = 1;
				SetPlayerHealth(playerid,99999);
				SetPlayerArmour(playerid,99999);
				SetPlayerColor(playerid,0xFAAFBEFF);
				for(new i = 0; i < MAX_PLAYERS; i ++)
				       {
				         if(IsPlayerConnected(i))
				        {
					      SetPlayerMarkerForPlayer( i,playerid,0xFAAFBEFF );
					    }
				       }
		    }
		}
		else
		{
			SendClientMessage(playerid,COLOR_GREY,"Your not an admin !");
		}
		return 1;
	}

Asta o am eu pe server, merge 100% ;)

P.S => Nu scrie [AOD]Nume , dar isi schimba culoarea si are viata & armura 99999 ;)

efe25e4426ff4ce1266705e.png
Link to comment
Share on other sites

Imi da 5 erori  !

D:\JOCURI\Pawno si Gta Sa-mp Server Manager.exe\pawno\include\JunkBuster.inc(1964) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")

C:\Documents and Settings\Administrator\Desktop\RSS\gamemodes\RO.pwn(1135) : error 017: undefined symbol "pAdmin"

C:\Documents and Settings\Administrator\Desktop\RSS\gamemodes\RO.pwn(1137) : error 017: undefined symbol "AdminDuty"

C:\Documents and Settings\Administrator\Desktop\RSS\gamemodes\RO.pwn(1137) : warning 215: expression has no effect

C:\Documents and Settings\Administrator\Desktop\RSS\gamemodes\RO.pwn(1137) : error 001: expected token: ";", but found "]"

C:\Documents and Settings\Administrator\Desktop\RSS\gamemodes\RO.pwn(1137) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Administrator\Desktop\RSS\gamemodes\RO.pwn(1137) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

5 Errors.

Link to comment
Share on other sites

Daca ne explici si unde pui codu ala ar fii bine :P

P.S am o intrebare cum as putea face ca atunci cand un admin da /aod sa ii se transforme numele in 2 culor adik O data sa fie Galben o data sa fie rosu... la interval de 1 sec :-? ???

Samp.OnlyPro.ro - RolePlay - Join Us !

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.