[Ajuda] Me Ajudem Nesse Cуdigo Que Esta Dando Erro No Meu Gm
#1

Olб Pessoal,Hoje venho aqui no meu primeiro tуpico pedir para vocКs me ajudarem com um cуdigo que esta dando erro no meu Gm,Eu sу exclui uns arquivos de CreateObject do meu Gm e umas linhas ficaram embaralhadas,Vou estar colocando Aqui em baixo : me Ajudem pf

Код:
format(string, sizeof(string), "%s Transferido R$%d to %s", GetName(playerid), strval(inputtext), GetName(TransferenciaID[playerid]));
if(strval(inputtext) >= 500000){ABroadCast(COLOR_YELLOW,string,1);}printf("%s", string);PayLog(string);PlayerPlaySound(TransferenciaID[playerid], 1052, 0.0, 0.0, 0.0);}else{SendClientMessage(playerid, COLOR_GRAD1, "   Transferencia Invalida!.");}}}else{
format(string, sizeof(string), "   %d Nгo esta ativo", TransferenciaID[playerid]);SendClientMessage(playerid, COLOR_GRAD1, string);}}}CaixaEletronico_Ok[playerid] = 0;return true;}return true;}
if(dialogid == DIALOG_TRANSFERIR){if(response == 0){PlayerPlaySound(playerid,1057,0.0,0.0,0.0);CaixaEletronico_Ok[playerid] = 0;return true;}if(response >= 1){PlayerPlaySound(playerid,1057,0.0,0.0,0.0);if(CaixaEletronico_Ok[playerid] == 4){
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);TransferenciaID[playerid] = strval(inputtext);ShowPlayerDialog(playerid, DIALOG_CAIXA_ELETRONICO_INPUT, DIALOG_STYLE_INPUT, "   Transferкncia","Digite a Quantia que Deseja Transferir:", "Confirma", "Sair");}return true;}
return true;}
if(dialogid == DIALOG_RANGE){if(!response) return 0;if(listitem == 0){new engine, lights, alarm, doors, bonnet, boot, objective,vehicleid;
vehicleid = GetPlayerVehicleID(playerid);GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);if(GetPVarInt(playerid,"Lights") == 1){SetVehicleParamsEx(vehicleid, engine, VEHICLE_PARAMS_OFF, alarm, doors, bonnet, boot, objective);SetPVarInt(playerid,"Lights",0);}else if(GetPVarInt(playerid,"Lights") == 0){SetVehicleParamsEx(vehicleid, engine, VEHICLE_PARAMS_ON, alarm, doors, bonnet, boot, objective);
SetPVarInt(playerid,"Lights",1);}return true;}if(listitem == 1){new engine, lights, alarm, doors, bonnet, boot, objective,vehicleid;vehicleid = GetPlayerVehicleID(playerid);GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);if(GetPVarInt(playerid,"Alarm") == 1){SetVehicleParamsEx(vehicleid, engine, lights, VEHICLE_PARAMS_OFF, doors, bonnet, boot, objective);SetPVarInt(playerid,"Alarm",0);}
else if(GetPVarInt(playerid,"Alarm") == 0){SetVehicleParamsEx(vehicleid, engine, lights, VEHICLE_PARAMS_ON, doors, bonnet, boot, objective);SetPVarInt(playerid,"Alarm",1);}return true;}if(listitem == 2){new engine, lights, alarm, doors, bonnet, boot, objective,vehicleid;vehicleid = GetPlayerVehicleID(playerid);GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
if(GetPVarInt(playerid,"Bonnet") == 1){SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, VEHICLE_PARAMS_OFF, boot, objective);SetPVarInt(playerid,"Bonnet",0);}else if(GetPVarInt(playerid,"Bonnet") == 0){SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, VEHICLE_PARAMS_ON, boot, objective);SetPVarInt(playerid,"Bonnet",1);}return true;}
if(listitem == 3){new engine, lights, alarm, doors, bonnet, boot, objective,vehicleid;vehicleid = GetPlayerVehicleID(playerid);GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);if(GetPVarInt(playerid,"Boot") == 1){SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, VEHICLE_PARAMS_OFF, objective);SetPVarInt(playerid,"Boot",0);}
else if(GetPVarInt(playerid,"Boot") == 0){SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, VEHICLE_PARAMS_ON, objective);SetPVarInt(playerid,"Boot",1);}return true;}return true;}
Й Essa linha aqui que esta dando erro :
Код:
vehicleid = GetPlayerVehicleID(playerid);GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);if(GetPVarInt(playerid,"Lights") == 1){SetVehicleParamsEx(vehicleid, engine, VEHICLE_PARAMS_OFF, alarm, doors, bonnet, boot, objective);SetPVarInt(playerid,"Lights",0);}else if(GetPVarInt(playerid,"Lights") == 0){SetVehicleParamsEx(vehicleid, engine, VEHICLE_PARAMS_ON, alarm, doors, bonnet, boot, objective);
O Erro й :
error 017: undefined symbol "GetVehicleParamsEx"
error 017: undefined symbol "SetVehicleParamsEx"
error 017: undefined symbol "SetVehicleParamsEx"

Pff me ajudem,o meu gm estava perfeito sem nenhum erro,Foi sу eu mecher nisso que deu esses erros ..

Aproveitando o tуpico,Tambйm esta dando esse erro :
\pawno\include\dutils.inc(45) : warning 219: local variable "hour" shadows a variable at a preceding level
\pawno\include\dutils.inc(45) : warning 219: local variable "minute" shadows a variable at a preceding level
\pawno\include\dutils.inc(45) : warning 219: local variable "second" shadows a variable at a preceding level
\pawno\include\dutils.inc(45) : warning 219: local variable "day" shadows a variable at a preceding level
\pawno\include\dutils.inc(45) : warning 219: local variable "month" shadows a variable at a preceding level
\pawno\include\dutils.inc(45) : warning 219: local variable "year" shadows a variable at a preceding level
Reply
#2

Код:
error 017: undefined symbol "GetVehicleParamsEx"
error 017: undefined symbol "SetVehicleParamsEx"
error 017: undefined symbol "SetVehicleParamsEx"
Atualize suas includes.



Код:
\pawno\include\dutils.inc(45) : warning 219: local variable "hour" shadows a variable at a preceding level
\pawno\include\dutils.inc(45) : warning 219: local variable "minute" shadows a variable at a preceding level
\pawno\include\dutils.inc(45) : warning 219: local variable "second" shadows a variable at a preceding level
\pawno\include\dutils.inc(45) : warning 219: local variable "day" shadows a variable at a preceding level
\pawno\include\dutils.inc(45) : warning 219: local variable "month" shadows a variable at a preceding level
\pawno\include\dutils.inc(45) : warning 219: local variable "year" shadows a variable at a preceding level
Vocк jб criou todas essas variбveis. Exclua uma new de cada variбvel dessa.
Reply
#3

Tenta atualizar suas includes.

Atualiza a a_vehicles.
Reply
#4

Quote:
Originally Posted by VladimireG
Посмотреть сообщение
Olб Pessoal,Hoje venho aqui no meu primeiro tуpico pedir para vocКs me ajudarem com um cуdigo que esta dando erro no meu Gm,Eu sу exclui uns arquivos de CreateObject do meu Gm e umas linhas ficaram embaralhadas,Vou estar colocando Aqui em baixo : me Ajudem pf

Код:
format(string, sizeof(string), "%s Transferido R$%d to %s", GetName(playerid), strval(inputtext), GetName(TransferenciaID[playerid]));
if(strval(inputtext) >= 500000){ABroadCast(COLOR_YELLOW,string,1);}printf("%s", string);PayLog(string);PlayerPlaySound(TransferenciaID[playerid], 1052, 0.0, 0.0, 0.0);}else{SendClientMessage(playerid, COLOR_GRAD1, "   Transferencia Invalida!.");}}}else{
format(string, sizeof(string), "   %d Nгo esta ativo", TransferenciaID[playerid]);SendClientMessage(playerid, COLOR_GRAD1, string);}}}CaixaEletronico_Ok[playerid] = 0;return true;}return true;}
if(dialogid == DIALOG_TRANSFERIR){if(response == 0){PlayerPlaySound(playerid,1057,0.0,0.0,0.0);CaixaEletronico_Ok[playerid] = 0;return true;}if(response >= 1){PlayerPlaySound(playerid,1057,0.0,0.0,0.0);if(CaixaEletronico_Ok[playerid] == 4){
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);TransferenciaID[playerid] = strval(inputtext);ShowPlayerDialog(playerid, DIALOG_CAIXA_ELETRONICO_INPUT, DIALOG_STYLE_INPUT, "   Transferкncia","Digite a Quantia que Deseja Transferir:", "Confirma", "Sair");}return true;}
return true;}
if(dialogid == DIALOG_RANGE){if(!response) return 0;if(listitem == 0){new engine, lights, alarm, doors, bonnet, boot, objective,vehicleid;
vehicleid = GetPlayerVehicleID(playerid);GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);if(GetPVarInt(playerid,"Lights") == 1){SetVehicleParamsEx(vehicleid, engine, VEHICLE_PARAMS_OFF, alarm, doors, bonnet, boot, objective);SetPVarInt(playerid,"Lights",0);}else if(GetPVarInt(playerid,"Lights") == 0){SetVehicleParamsEx(vehicleid, engine, VEHICLE_PARAMS_ON, alarm, doors, bonnet, boot, objective);
SetPVarInt(playerid,"Lights",1);}return true;}if(listitem == 1){new engine, lights, alarm, doors, bonnet, boot, objective,vehicleid;vehicleid = GetPlayerVehicleID(playerid);GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);if(GetPVarInt(playerid,"Alarm") == 1){SetVehicleParamsEx(vehicleid, engine, lights, VEHICLE_PARAMS_OFF, doors, bonnet, boot, objective);SetPVarInt(playerid,"Alarm",0);}
else if(GetPVarInt(playerid,"Alarm") == 0){SetVehicleParamsEx(vehicleid, engine, lights, VEHICLE_PARAMS_ON, doors, bonnet, boot, objective);SetPVarInt(playerid,"Alarm",1);}return true;}if(listitem == 2){new engine, lights, alarm, doors, bonnet, boot, objective,vehicleid;vehicleid = GetPlayerVehicleID(playerid);GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
if(GetPVarInt(playerid,"Bonnet") == 1){SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, VEHICLE_PARAMS_OFF, boot, objective);SetPVarInt(playerid,"Bonnet",0);}else if(GetPVarInt(playerid,"Bonnet") == 0){SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, VEHICLE_PARAMS_ON, boot, objective);SetPVarInt(playerid,"Bonnet",1);}return true;}
if(listitem == 3){new engine, lights, alarm, doors, bonnet, boot, objective,vehicleid;vehicleid = GetPlayerVehicleID(playerid);GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);if(GetPVarInt(playerid,"Boot") == 1){SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, VEHICLE_PARAMS_OFF, objective);SetPVarInt(playerid,"Boot",0);}
else if(GetPVarInt(playerid,"Boot") == 0){SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, VEHICLE_PARAMS_ON, objective);SetPVarInt(playerid,"Boot",1);}return true;}return true;}
Й Essa linha aqui que esta dando erro :
Код:
vehicleid = GetPlayerVehicleID(playerid);GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);if(GetPVarInt(playerid,"Lights") == 1){SetVehicleParamsEx(vehicleid, engine, VEHICLE_PARAMS_OFF, alarm, doors, bonnet, boot, objective);SetPVarInt(playerid,"Lights",0);}else if(GetPVarInt(playerid,"Lights") == 0){SetVehicleParamsEx(vehicleid, engine, VEHICLE_PARAMS_ON, alarm, doors, bonnet, boot, objective);
O Erro й :
error 017: undefined symbol "GetVehicleParamsEx"
error 017: undefined symbol "SetVehicleParamsEx"
error 017: undefined symbol "SetVehicleParamsEx"

Pff me ajudem,o meu gm estava perfeito sem nenhum erro,Foi sу eu mecher nisso que deu esses erros ..

Aproveitando o tуpico,Tambйm esta dando esse erro :
\pawno\include\dutils.inc(45) : warning 219: local variable "hour" shadows a variable at a preceding level
\pawno\include\dutils.inc(45) : warning 219: local variable "minute" shadows a variable at a preceding level
\pawno\include\dutils.inc(45) : warning 219: local variable "second" shadows a variable at a preceding level
\pawno\include\dutils.inc(45) : warning 219: local variable "day" shadows a variable at a preceding level
\pawno\include\dutils.inc(45) : warning 219: local variable "month" shadows a variable at a preceding level
\pawno\include\dutils.inc(45) : warning 219: local variable "year" shadows a variable at a preceding level
Tente assim, fica melhor de entender...

Код:
					format(string, sizeof(string), "%s Transferido R$%d to %s", GetName(playerid), strval(inputtext), GetName(TransferenciaID[playerid]));
					if(strval(inputtext) >= 500000)
					{
						ABroadCast(COLOR_YELLOW,string,1);
					}
					printf("%s", string);
					PayLog(string);
					PlayerPlaySound(TransferenciaID[playerid], 1052, 0.0, 0.0, 0.0);
				}
				else
				{
					SendClientMessage(playerid, COLOR_GRAD1, "   Transferencia Invalida!.");}
				}
			}
			else
			{
				format(string, sizeof(string), "   %d Nгo esta ativo", TransferenciaID[playerid]);
				SendClientMessage(playerid, COLOR_GRAD1, string);
			}
		}
	}
	CaixaEletronico_Ok[playerid] = 0;
	return true;
	}
return true;
}
if(dialogid == DIALOG_TRANSFERIR)
{
	if(response == 0)
	{
		PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
		CaixaEletronico_Ok[playerid] = 0;return true;
	}
	if(response >= 1)
	{
		PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
		if(CaixaEletronico_Ok[playerid] == 4)
		{
			PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
			TransferenciaID[playerid] = strval(inputtext);
			ShowPlayerDialog(playerid, DIALOG_CAIXA_ELETRONICO_INPUT, DIALOG_STYLE_INPUT, "   Transferкncia","Digite a Quantia que Deseja Transferir:", "Confirma", "Sair");
		}
		return true;
	}
	return true;
}
if(dialogid == DIALOG_RANGE)
{
	if(!response) return 0;
	if(listitem == 0)
	{
		new engine, lights, alarm, doors, bonnet, boot, objective,vehicleid;
		vehicleid = GetPlayerVehicleID(playerid);
		GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
		if(GetPVarInt(playerid,"Lights") == 1)
		{
			SetVehicleParamsEx(vehicleid, engine, VEHICLE_PARAMS_OFF, alarm, doors, bonnet, boot, objective);
			SetPVarInt(playerid,"Lights",0);
		}
		else if(GetPVarInt(playerid,"Lights") == 0)
		{
			SetVehicleParamsEx(vehicleid, engine, VEHICLE_PARAMS_ON, alarm, doors, bonnet, boot, objective);
			SetPVarInt(playerid,"Lights",1);}return true;
		}
		if(listitem == 1)
		{
			new engine, lights, alarm, doors, bonnet, boot, objective,vehicleid;
			vehicleid = GetPlayerVehicleID(playerid);
			GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
			if(GetPVarInt(playerid,"Alarm") == 1)
			{
				SetVehicleParamsEx(vehicleid, engine, lights, VEHICLE_PARAMS_OFF, doors, bonnet, boot, objective);
				SetPVarInt(playerid,"Alarm",0);
			}
			else if(GetPVarInt(playerid,"Alarm") == 0)
			{
				SetVehicleParamsEx(vehicleid, engine, lights, VEHICLE_PARAMS_ON, doors, bonnet, boot, objective);
				SetPVarInt(playerid,"Alarm",1);
			}
			return true;
		}
		if(listitem == 2)
		{
			new engine, lights, alarm, doors, bonnet, boot, objective,vehicleid;
			vehicleid = GetPlayerVehicleID(playerid);
			GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
			if(GetPVarInt(playerid,"Bonnet") == 1)
			{
				SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, VEHICLE_PARAMS_OFF, boot, objective);
				SetPVarInt(playerid,"Bonnet",0);}else if(GetPVarInt(playerid,"Bonnet") == 0)
				{
					SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, VEHICLE_PARAMS_ON, boot, objective);
					SetPVarInt(playerid,"Bonnet",1);
				}
				return true;
			}
			if(listitem == 3)
			{
				new engine, lights, alarm, doors, bonnet, boot, objective,vehicleid;
				vehicleid = GetPlayerVehicleID(playerid);
				GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
				if(GetPVarInt(playerid,"Boot") == 1)
				{
					SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, VEHICLE_PARAMS_OFF, objective);
					SetPVarInt(playerid,"Boot",0);
				}
				else if(GetPVarInt(playerid,"Boot") == 0)
				{
					SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, VEHICLE_PARAMS_ON, objective);
					SetPVarInt(playerid,"Boot",1);
				}
				return true;
			}
			return true;
		}
Se nгo der poste toda a public OnDialogResponse..

Poste as linhas dos outros erros (hour, ..)
Reply
#5

Lembrando Pessoal Que eu nгo etendendo nada de Pwn,Estava querendo aprender como programar,Porque assim eu nгo baixaria um gm da internet(Que pela maioria das vezes vem bugado)
E Criaria o meu prуprio Gm..
Pois entгo,voltando ao assunto,o Shadow Falou para postar toda a Public OnDialogResponse..
Pois entгo "O QUE Й ISSO ??" Como ja falei,nem sei de nada de Pawno,Sу queria resolver esse erro !!
Me Falem como devo Colocar esse sнmbolos ai que fala..
E outra,Vocкs falaram pra eu atualizar as includes,Mais como eu faзo isso?
Tipo,Tenho que baixar novas includes?
e onde baixar ?
Muito obrigado a todos que me ajudarem..e a proposito dou reputaзгo pra quem me ajudar a resolver !! Obrigado =D
Reply
#6

http://files.sa-mp.com/samp03x_svr_R1-2_win32.zip

Vai em Pawno\Includes e copia oque tem dentro e cola na pasta Pawno\Includes do seu Gamemode!.
Reply
#7

@Coe1
Substitui os arquivos,Que vc falou e apareceu mais erros ainda,o jeito vai ser eu baixar o Gm dnv e editar tudooo dnv do que eu ja tinha editado !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)