Undefined Error
#1

[codeC:\Users\bugra\Desktop\Photoshop Gerekliler\Icons\Dizzee\gamemodes\Dizzee.pwn(2103) : error 017: undefined symbol "ATM_Yukle"
C:\Users\bugra\Desktop\Photoshop Gerekliler\Icons\Dizzee\gamemodes\Dizzee.pwn(6137) : error 017: undefined symbol "atmsil"
C:\Users\bugra\Desktop\Photoshop Gerekliler\Icons\Dizzee\gamemodes\Dizzee.pwn(929 : error 017: undefined symbol "atmolustur"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.[/code]

2103
Код:
ATM_Yukle();
6137
Код:
atmsil();
9298
Код:
dcmd_atmekle(playerid, params[])
{
	new aNeym[56];
	if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Bunun icin RCON Admin olmalisiniz!");
	if(sscanf(params, "s[56]", aNeym)) return SendClientMessage(playerid, -1, "Kullanım: /atmekle [ATM Adı]");
	if(atm_class >= MAX_ATM) return SendClientMessage(playerid, -1, "Maximum limite ulastiniz!");
	else {
	new
		string[126], Float: gPos[4];
	GetPlayerPos(playerid, gPos[0], gPos[1], gPos[2]);
	GetPlayerFacingAngle(playerid, gPos[3]);
	format(string, sizeof string, "ATM/ATM_%i.txt", atm_class);
	dini_Create(string);
	dini_Set(string, "isim", aNeym);
	dini_FloatSet(string, "atmx", gPos[0]);
	dini_FloatSet(string, "atmy", gPos[1]);
	dini_FloatSet(string, "atmz", gPos[2]);
	dini_FloatSet(string, "atma", gPos[3]);
	atmolustur(aNeym, gPos[0], gPos[1], gPos[2], gPos[3]);
	format(string, sizeof string, "Basariyla %s adli atm olusturdunuz. ATM ID: %d", aNeym, atm_class-1);
	SendClientMessage(playerid, -1, string);
	}
	return true;
}
Reply
#2

new ATM_Yukle();
new atmsil();
new atmolustur(aNeym, gPos[0], gPos[1], gPos[2], gPos[3]);
Reply
#3

Quote:
Originally Posted by OmegaKiller72
Посмотреть сообщение
new ATM_Yukle();
new atmsil();
new atmolustur(aNeym, gPos[0], gPos[1], gPos[2], gPos[3]);
What?

I'm guessing you copied that code from some script.
Either copy correctly (with all the extra functions needed) or don't copy at all.
Reply
#4

i think this is some random function, and it need to be new in this local
new atmolustur(aNeym, gPos[0], gPos[1], gPos[2], gPos[3]);
Reply
#5

No, stuff doesn't work like that,
Functions aren't variables or arrays to be created using "new"..
Reply
#6

Код:
C:\Users\bugra\Desktop\Photoshop Gerekliler\Icons\Dizzee\gamemodes\Dizzee.pwn(92) : error 001: expected token: ";", but found "("
C:\Users\bugra\Desktop\Photoshop Gerekliler\Icons\Dizzee\gamemodes\Dizzee.pwn(93) : error 001: expected token: ";", but found "("
C:\Users\bugra\Desktop\Photoshop Gerekliler\Icons\Dizzee\gamemodes\Dizzee.pwn(94) : error 001: expected token: ";", but found "("
C:\Users\bugra\Desktop\Photoshop Gerekliler\Icons\Dizzee\gamemodes\Dizzee.pwn(2106) : error 012: invalid function call, not a valid address
C:\Users\bugra\Desktop\Photoshop Gerekliler\Icons\Dizzee\gamemodes\Dizzee.pwn(2106) : error 029: invalid expression, assumed zero
C:\Users\bugra\Desktop\Photoshop Gerekliler\Icons\Dizzee\gamemodes\Dizzee.pwn(2106) : warning 215: expression has no effect
C:\Users\bugra\Desktop\Photoshop Gerekliler\Icons\Dizzee\gamemodes\Dizzee.pwn(6140) : error 012: invalid function call, not a valid address
C:\Users\bugra\Desktop\Photoshop Gerekliler\Icons\Dizzee\gamemodes\Dizzee.pwn(6140) : error 029: invalid expression, assumed zero
C:\Users\bugra\Desktop\Photoshop Gerekliler\Icons\Dizzee\gamemodes\Dizzee.pwn(6140) : warning 215: expression has no effect
C:\Users\bugra\Desktop\Photoshop Gerekliler\Icons\Dizzee\gamemodes\Dizzee.pwn(9301) : error 012: invalid function call, not a valid address
C:\Users\bugra\Desktop\Photoshop Gerekliler\Icons\Dizzee\gamemodes\Dizzee.pwn(9301) : warning 215: expression has no effect
C:\Users\bugra\Desktop\Photoshop Gerekliler\Icons\Dizzee\gamemodes\Dizzee.pwn(9301) : warning 215: expression has no effect
C:\Users\bugra\Desktop\Photoshop Gerekliler\Icons\Dizzee\gamemodes\Dizzee.pwn(9301) : warning 215: expression has no effect
C:\Users\bugra\Desktop\Photoshop Gerekliler\Icons\Dizzee\gamemodes\Dizzee.pwn(9301) : warning 215: expression has no effect
C:\Users\bugra\Desktop\Photoshop Gerekliler\Icons\Dizzee\gamemodes\Dizzee.pwn(9301) : warning 215: expression has no effect
C:\Users\bugra\Desktop\Photoshop Gerekliler\Icons\Dizzee\gamemodes\Dizzee.pwn(9301) : error 001: expected token: ";", but found ")"
C:\Users\bugra\Desktop\Photoshop Gerekliler\Icons\Dizzee\gamemodes\Dizzee.pwn(9301) : error 029: invalid expression, assumed zero
C:\Users\bugra\Desktop\Photoshop Gerekliler\Icons\Dizzee\gamemodes\Dizzee.pwn(9301) : fatal error 107: too many error messages on one line

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


11 Errors.
i add
new ATM_Yukle();
new atmsil();
new atmolustur(aNeym, gPos[0], gPos[1], gPos[2], gPos[3]);
Reply
#7

fs link
http://pastebin.com/0JR4yrT9
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)