SA-MP Forums Archive
Erro de linha na hora de compilar.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: Erro de linha na hora de compilar.. (/showthread.php?tid=380759)



Erro de linha na hora de compilar.. - duuuwh - 26.09.2012

Linha e erro: C:\Users\eduwenes!\AppData\Local\Temp\fz3temp-2\btlserver.pwn(3315) : warning 203: symbol is never used: "str"



Linha: new str[256];

Cуdigo completo:

Код:
stock AddFlitsPaal(playerid, modelid, Float:px, Float:py, Float:pz, radius, speed)
{
	new fine[MAX_PLAYERS];
 	new str[256];
 	//new str2[256];
 	new newcar = GetVehicleModel(GetPlayerVehicleID(playerid));

 	if(objectcreated!=maxobject)
  	{
    	CreateDynamicObject(modelid, px, py, pz-20, 0.0, 0.0, 10);
     	objectcreated++;
     	/*Create3DTextLabel("ATENЗГO!!", COLOR_YELLOW, px, py, pz+1, 50, 0, 1);*/
  	}
Alguem pode me ajudar?

Quero mudar logo meu gm pois estou sofrendo invasхes..


Re: Erro de linha na hora de compilar.. - .FuneraL. - 26.09.2012

Tira a Linha:

pawn Код:
new str[256];
Ela Nunca foi Utilizada.



Re: Erro de linha na hora de compilar.. - Q.I - 26.09.2012

significa que ela nao esta sendo usada apague e pronto

pawn Код:
stock AddFlitsPaal(playerid, modelid, Float:px, Float:py, Float:pz, radius, speed)
{
    new fine[MAX_PLAYERS];
    new newcar = GetVehicleModel(GetPlayerVehicleID(playerid));
    if(objectcreated!=maxobject)
    {
                CreateDynamicObject(modelid, px, py, pz-20, 0.0, 0.0, 10);
                objectcreated++;
         
    }



Re: Erro de linha na hora de compilar.. - duuuwh - 26.09.2012

Opa valeu..

Pode me ajudar com este outro ultimo erro?

C:\Users\eduwenes!\AppData\Local\Temp\fz3temp-2\btlserver.pwn(46724) : error 017: undefined symbol "SPECIAL_ACTION_CUFFED"


Linha: SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_CUFFED);



Cуdigo completo:

Код:
if (ProxDetectorS(8.0, playerid, giveplayerid))
					{
					    if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Vocк nao pode se algemar!"); return 1; }
					    if(GetPlayerState(playerid))
					    {
					        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
							GetPlayerName(playerid, sendername, sizeof(sendername));
					        format(string, sizeof(string), "* Vocк foi algemado pelo: %s.", sendername);
							SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
							format(string, sizeof(string), "* Vocк algemou %s.", giveplayer);
							SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
							format(string, sizeof(string), "* %s Algemou %s, para nao fugir.", sendername ,giveplayer);
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
							GameTextForPlayer(giveplayerid, "~r~Algemado", 2500, 3);
							TogglePlayerControllable(giveplayerid, 0);
							PlayerCuffed[giveplayerid] = 2;
							PlayerInfo[giveplayerid][pMuted] = 1;
							SetPlayerAttachedObject(giveplayerid, 4, 19418, 6, -0.031999, 0.024000, -0.024000, -7.900000, -32.000011, -72.299987, 1.115998, 1.322000, 1.406000);
                            SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_CUFFED);
					    }
					}



Re: Erro de linha na hora de compilar.. - .FuneraL. - 26.09.2012

Atualize sua include <a_samp> para a 0.3e, essa funзгo nгo estб implementada nas versхes anteriores.


Re: Erro de linha na hora de compilar.. - duuuwh - 26.09.2012

Pode me mandar o link atualizado de download please?


Re: Erro de linha na hora de compilar.. - .FuneraL. - 26.09.2012

http://www.sa-mp.com/download.php - Windows Server se for Windows, e Linux Server se for Linux, Lб vem as Includes que Vocк Precisa.


Re: Erro de linha na hora de compilar.. - duuuwh - 26.09.2012

Baixei a include, instalei.. e ainda continua.


Re: Erro de linha na hora de compilar.. - darkxdll - 26.09.2012

Nгo й sу a a_samp , pegue todas as includes nativas atualizadas !


Respuesta: Erro de linha na hora de compilar.. - Lucas_Rocha - 26.09.2012

LoL ? Topo Da Gm :


pawn Код:
#define SPECIAL_ACTION_CUFFED 24