SA-MP Forums Archive
error 017: undefined symbol,fatal error 107: too many error messages on one line - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 017: undefined symbol,fatal error 107: too many error messages on one line (/showthread.php?tid=511289)



error 017: undefined symbol,fatal error 107: too many error messages on one line - Slicebook - 04.05.2014

How to fix? help
Code:
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(12381) : error 017: undefined symbol "sendername"
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(12381) : error 017: undefined symbol "sendername"
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(12381) : error 029: invalid expression, assumed zero
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(12381) : fatal error 107: too many error messages on one line
ERROR>>>
Code:
GetPlayerName(playerid, sendername, sizeof(sendername));
Full code:
Code:
	else if( dialogid == DIALOG_MOBILTESZT )
		{
			if(response == 1) // ha a legelső gombra (OK-ra) ment rб....// ha a legelső gombra (OK-ra) ment rб....
			{
				new tmp;
				tmp = strval(inputtext);
				new phonenumb = strval(inputtext);
				if(phonenumb == PlayerInfo[playerid][pPnumber])
				{
					SendClientMessage(playerid, COLOR_GRAD2, "Magadat hнvod fel?");
					return 1;
				}
				if(Mobile[playerid] != -1)
				{
					SendClientMessage(playerid, COLOR_GRAD2, "Mбr hнvбsban vagy!");
					return 1;
				}
				GetPlayerName(playerid, sendername, sizeof(sendername)); <<ERROR
				SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
				foreach(Jatekosok,i)
				{
					if(IsPlayerConnected(i))
					{
						if(PlayerInfo[i][pPnumber] == phonenumb && phonenumb != 0)
						{
							giveplayerid = i;
							Mobile[playerid] = giveplayerid; //caller connecting
							new Hivasara;
				        
							if(IsPlayerInDynamicArea(playerid,Varosok[VAROS_LS]))
								Hivasara = BizzInfo[BIZ_TMOBIL][bEntranceCost];
							else if(IsPlayerInDynamicArea(playerid,Varosok[VAROS_SF]))
								Hivasara = BizzInfo[BIZ_VODAFON][bEntranceCost];
							else if(IsPlayerInDynamicArea(playerid,Varosok[VAROS_LV]))
								Hivasara = BizzInfo[BIZ_DJUICE][bEntranceCost];
							
							if(PlayerInfo[playerid][pTeloEgyenleg] < Hivasara)
							{
								SendClientMessage(playerid, COLOR_GRAD2, "Nem бll rendelkezйsre elegendő цsszeg a hнvбs kapcsolбsбhoz. Feltцltйs: /egyenleg Feltцlt");
								return 1;
							}

							if(PlayerInfo[giveplayerid][pJailed] != BORTON_NINCS)
								return Msg(playerid, "Bцrtцnben van!");

							if(PhoneOnline[giveplayerid] > 0)	
							{
								SendClientMessage(playerid, COLOR_GREY, "Ki van kapcsolva a telefonja.");
								return 1;
							}
							if(Mobile[giveplayerid] == -1)
							{
								new hivo, fulke = FulkenelVan(playerid);
								hivo = PlayerInfo[playerid][pPnumber];
								if(fulke == NINCS)
								{
									if(!Rejtett[playerid])
										format(string, sizeof(string), "(( Csцrцg a telefonod! Hнvу: %d |/pickup| ))", hivo);
									else if(PlayerInfo[giveplayerid][pAdmin] > 4)
										format(string, sizeof(string), "(( Csцrцg a telefonod! Hнvу: Ismeretlen |/pickup| - %d ))", hivo);
									else
										format(string, sizeof(string), "(( Csцrцg a telefonod! Hнvу: Ismeretlen |/pickup| ))");
								}
								else
								{
									format(string, sizeof(string), "(( Csцrцg a telefonod! Hнvу: Telefonfьlke |/pickup| ))");
								}

								SendClientMessage(giveplayerid, COLOR_YELLOW, string);
								GetPlayerName(giveplayerid, sendername, sizeof(sendername));
								RingTone[giveplayerid] = 10;
								format(string, sizeof(string), "* Valakinek csцrцg a telefonja", sendername);
								ProxDetector(30.0, i, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
								CellTime[playerid] = 1;

								return 1;
							}
							else
								Msg(playerid, "Foglalt... Hнvбsban van...");
						}
					}
				}
				SendClientMessage(playerid, COLOR_GRAD2, "Nincs ilyen telefonszбm.");
				return 1;
			}
		}



Re: error 017: undefined symbol,fatal error 107: too many error messages on one line - [WSF]ThA_Devil - 04.05.2014

add:
new sendername[25];
infront of GetPlayerName(playerid, sendername, sizeof(sendername));


Re: error 017: undefined symbol,fatal error 107: too many error messages on one line - Spartaaaaa - 04.05.2014

PlayerInfo[i][0]


Re: error 017: undefined symbol,fatal error 107: too many error messages on one line - Slicebook - 04.05.2014

[WSF]ThA_Devil < don't work! 10error

Code:
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(12390) : error 017: undefined symbol "giveplayerid"
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(12390) : warning 215: expression has no effect
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(12391) : error 017: undefined symbol "giveplayerid"
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(12391) : error 076: syntax error in the expression, or invalid function call
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(12407) : error 017: undefined symbol "giveplayerid"
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(12410) : error 017: undefined symbol "giveplayerid"
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(12415) : error 017: undefined symbol "giveplayerid"
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(12423) : error 017: undefined symbol "giveplayerid"
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(12433) : error 017: undefined symbol "giveplayerid"
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(12434) : error 017: undefined symbol "giveplayerid"
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(12435) : error 017: undefined symbol "giveplayerid"
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(12435) : warning 215: expression has no effect
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(12369) : warning 204: symbol is assigned a value that is never used: "tmp"
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(13325) : warning 219: local variable "giveplayerid" shadows a variable at a preceding level
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(13334) : warning 219: local variable "giveplayerid" shadows a variable at a preceding level
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(13430) : warning 219: local variable "giveplayerid" shadows a variable at a preceding level
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(13502) : warning 219: local variable "giveplayerid" shadows a variable at a preceding level
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(13582) : warning 219: local variable "giveplayerid" shadows a variable at a preceding level
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(13654) : warning 219: local variable "giveplayerid" shadows a variable at a preceding level
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(13734) : warning 219: local variable "giveplayerid" shadows a variable at a preceding level
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(13813) : warning 219: local variable "giveplayerid" shadows a variable at a preceding level
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(13892) : warning 219: local variable "giveplayerid" shadows a variable at a preceding level
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(13972) : warning 219: local variable "giveplayerid" shadows a variable at a preceding level
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(19208) : warning 219: local variable "giveplayerid" shadows a variable at a preceding level
D:\Mбtй kйpei\SeeRPG\26febrmof\icerpg.pwn(44434) : warning 219: local variable "giveplayerid" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase



Re: error 017: undefined symbol,fatal error 107: too many error messages on one line - [WSF]ThA_Devil - 04.05.2014

Quote:
Originally Posted by Spartaaaaa
View Post
PlayerInfo[i][0]
Are you going around trolling people? Your reply did not make any sense. Do not post to get post count up.
__________________________________________________ ______________________________________



Now back to problem.
I think you have already defined variable giveplayerid on top of script maybe


Re: error 017: undefined symbol,fatal error 107: too many error messages on one line - Slicebook - 04.05.2014

help me !


Re: error 017: undefined symbol,fatal error 107: too many error messages on one line - Spartaaaaa - 04.05.2014

I'm not increasing my posts,


Re: error 017: undefined symbol,fatal error 107: too many error messages on one line - Spartaaaaa - 04.05.2014

[code]ERROR>>>
Code:
GetPlayerName(playerid, sendername, sizeof(sendername));
Sorry i didn't saw that thats why i post wrong code wait i'll help you.


Re: error 017: undefined symbol,fatal error 107: too many error messages on one line - Spartaaaaa - 04.05.2014

Code:
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);



Re: error 017: undefined symbol,fatal error 107: too many error messages on one line - Slicebook - 04.05.2014

Quote:
Originally Posted by Spartaaaaa
View Post
Code:
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
don't work (


Re: error 017: undefined symbol,fatal error 107: too many error messages on one line - Spartaaaaa - 04.05.2014

What's the error now.? buddy.


Re: error 017: undefined symbol,fatal error 107: too many error messages on one line - Slicebook - 04.05.2014

13error.. I want this Dialog , where the number of writes and draws the person

Code:
		ShowPlayerDialog(playerid, DIALOG_MOBILTESZT, DIALOG_STYLE_INPUT,"Call","Add meg a hнvni kнvбnt telefonszбmot:","OK","Mйgsem"); // call