SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 04/05/2014, 08:01 PM   #1
Slicebook
Big Clucker
 
Join Date: Jan 2014
Posts: 182
Reputation: 1
Angry error 017: undefined symbol,fatal error 107: too many error messages on one line

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;
			}
		}
Slicebook is offline   Reply With Quote
Old 04/05/2014, 08:04 PM   #2
[WSF]ThA_Devil
Gangsta
 
[WSF]ThA_Devil's Avatar
 
Join Date: Sep 2010
Location: United Kingdom
Posts: 662
Reputation: 55
Default Re: error 017: undefined symbol,fatal error 107: too many error messages on one line

add:
new sendername[25];
infront of GetPlayerName(playerid, sendername, sizeof(sendername));
__________________
Quote:
Originally Posted by Shinobu View Post
Somebody save me, I am not a server.
[WSF]ThA_Devil is offline   Reply With Quote
Old 04/05/2014, 08:06 PM   #3
Spartaaaaa
Huge Clucker
 
Spartaaaaa's Avatar
 
Join Date: May 2014
Location: Puma™
Posts: 262
Reputation: 16
Default Re: error 017: undefined symbol,fatal error 107: too many error messages on one line

PlayerInfo[i][0]
Spartaaaaa is offline   Reply With Quote
Old 04/05/2014, 08:08 PM   #4
Slicebook
Big Clucker
 
Join Date: Jan 2014
Posts: 182
Reputation: 1
Default Re: error 017: undefined symbol,fatal error 107: too many error messages on one line

[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 (c) 1997-2006, ITB CompuPhase
Slicebook is offline   Reply With Quote
Old 04/05/2014, 08:09 PM   #5
[WSF]ThA_Devil
Gangsta
 
[WSF]ThA_Devil's Avatar
 
Join Date: Sep 2010
Location: United Kingdom
Posts: 662
Reputation: 55
Default Re: error 017: undefined symbol,fatal error 107: too many error messages on one line

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
__________________
Quote:
Originally Posted by Shinobu View Post
Somebody save me, I am not a server.
[WSF]ThA_Devil is offline   Reply With Quote
Old 04/05/2014, 08:13 PM   #6
Slicebook
Big Clucker
 
Join Date: Jan 2014
Posts: 182
Reputation: 1
Default Re: error 017: undefined symbol,fatal error 107: too many error messages on one line

help me !
Slicebook is offline   Reply With Quote
Old 04/05/2014, 08:13 PM   #7
Spartaaaaa
Huge Clucker
 
Spartaaaaa's Avatar
 
Join Date: May 2014
Location: Puma™
Posts: 262
Reputation: 16
Default Re: error 017: undefined symbol,fatal error 107: too many error messages on one line

I'm not increasing my posts,
Spartaaaaa is offline   Reply With Quote
Old 04/05/2014, 08:15 PM   #8
Spartaaaaa
Huge Clucker
 
Spartaaaaa's Avatar
 
Join Date: May 2014
Location: Puma™
Posts: 262
Reputation: 16
Lightbulb Re: error 017: undefined symbol,fatal error 107: too many error messages on one line

[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.
Spartaaaaa is offline   Reply With Quote
Old 04/05/2014, 08:19 PM   #9
Spartaaaaa
Huge Clucker
 
Spartaaaaa's Avatar
 
Join Date: May 2014
Location: Puma™
Posts: 262
Reputation: 16
Default Re: error 017: undefined symbol,fatal error 107: too many error messages on one line

Code:
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
Spartaaaaa is offline   Reply With Quote
Old 04/05/2014, 08:24 PM   #10
Slicebook
Big Clucker
 
Join Date: Jan 2014
Posts: 182
Reputation: 1
Default Re: error 017: undefined symbol,fatal error 107: too many error messages on one line

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fatal error 107: too many error messages on one line Xy6a6y6a Scripting Help 6 23/10/2013 11:38 AM
fatal error 107: too many error messages on one line Guest123 Scripting Help 5 30/05/2013 01:26 PM
fatal error 107: too many error messages on one line[Commands] Jason_Dino Scripting Help 23 26/10/2012 05:44 PM
[AJUDA] fatal error 107: too many error messages on one line danielgoes Portuguęs/Portuguese 3 26/09/2011 11:21 PM
fatal error 107: too many error messages on one line _Vortex Help Archive 2 08/04/2010 02:03 AM


All times are GMT. The time now is 12:24 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.