[HELP]Adding MoveObject Error(s)
#1

I tryed moveobject but it saying errors to me...
The move object is this :
Код:
	if(strcmp(cmdtext, "/kapilariac", true) == 0)
  if(GetPlayerSkin(playerid) == 271
    {
    MoveObject(kapi1,1676.396240,-1450.866821,12.713753,Float:3);
    MoveObject(kapi2,1696.090698,19.341759,269.7591,Float:3);
    MoveObject(kapi3,1672.133545,-1460.273315,19.716784,Float:3);
    else
    {
		if(GetPlayerSkin(playerid) == < 271 || if(GetPlayerSkin(playerid) == > 271
			SendClientMessage(playerid, COLOR_RED, "Admin bolgesinin kapilarini acip,kapatmak icin 271. skinde yani admin skininde olmalisin.");
 		}
 		return 1;
    }
    if(strcmp(cmdtext, "/kapilarikapa", true) == 0)
    {
    MoveObject(kapi1,1684.233276,-1460.420654,20.016806,Float:3);
    MoveObject(kapi2,1688.139160,-1460.420654,20.016806,Float:3);
    MoveObject(kapi3,1679.172974,-1460.430420,20.004419,Float:3);
    }
    else
    {
		if(GetPlayerSkin(playerid) == < 271 || if(GetPlayerSkin(playerid) == > 271
			SendClientMessage(playerid, COLOR_RED, "Admin bolgesinin kapilarini acip,kapatmak icin 271. skinde yani admin skininde olmalisin.");
 		}
 		return 1;
    }
And the errors are there :
Код:
C:\DOCUME~1\THENIG~1\Desktop\HAVADA~1\SERVER\files\GAMEMO~1\bk.pwn(290) : warning 219: local variable "oisim" shadows a variable at a preceding level
C:\DOCUME~1\THENIG~1\Desktop\HAVADA~1\SERVER\files\GAMEMO~1\bk.pwn(291) : warning 219: local variable "girisyazisi" shadows a variable at a preceding level
C:\DOCUME~1\THENIG~1\Desktop\HAVADA~1\SERVER\files\GAMEMO~1\bk.pwn(306) : warning 219: local variable "oisim" shadows a variable at a preceding level
C:\DOCUME~1\THENIG~1\Desktop\HAVADA~1\SERVER\files\GAMEMO~1\bk.pwn(321) : warning 219: local variable "oisim" shadows a variable at a preceding level
C:\DOCUME~1\THENIG~1\Desktop\HAVADA~1\SERVER\files\GAMEMO~1\bk.pwn(368) : error 029: invalid expression, assumed zero
C:\DOCUME~1\THENIG~1\Desktop\HAVADA~1\SERVER\files\GAMEMO~1\bk.pwn(372) : error 029: invalid expression, assumed zero
C:\DOCUME~1\THENIG~1\Desktop\HAVADA~1\SERVER\files\GAMEMO~1\bk.pwn(374) : error 029: invalid expression, assumed zero
C:\DOCUME~1\THENIG~1\Desktop\HAVADA~1\SERVER\files\GAMEMO~1\bk.pwn(374) : error 029: invalid expression, assumed zero
C:\DOCUME~1\THENIG~1\Desktop\HAVADA~1\SERVER\files\GAMEMO~1\bk.pwn(374) : error 029: invalid expression, assumed zero
C:\DOCUME~1\THENIG~1\Desktop\HAVADA~1\SERVER\files\GAMEMO~1\bk.pwn(374) : fatal error 107: too many error messages on one line

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


6 Errors.
kapi in my language types gate

The objects are there :
Код:
	kapi1 = CreateObject(969, 1684.233276, -1450.922852, 12.732517, 0.0000, 0.0000, 0.0000);
	kapi2 = CreateObject(971, 1688.139160, -1460.420654, 20.016806, 269.7592, 4.2972, 184.2972);
	kapi3 = CreateObject(971, 1679.172974, -1460.430420, 20.004419, 269.7592, 4.2972, 184.2972);
Please help me.
Reply
#2

On lines:
  • 290 Delete:
pawn Код:
new oisim;
  • 291 Delete:
pawn Код:
new girisyazisi;
  • 306 Delete:
pawn Код:
new oisim;
  • 321 Delete:
pawn Код:
new oisim;
And what is on the following lines:

368, 372, 374
Reply
#3

I deleted them but new errors occured...
It is undefined symbol "oisim" :S
Reply
#4

then after the includes and defines, put
pawn Код:
new oisim;
Reply
#5

im not understand i give you pawn(pwn) can you edit ?(give me your msn in pm)
Reply
#6

Read Pawn documentation.
Reply
#7

I dont understand my mod is this :
http://pastebin.com/m7bdb4ff4
please fix errors
Reply
#8

INDENTING wouldn't hurt your script. Here, I've fixed it for you, terribly messy script. No wonder you couldn't see the problems. Here's the new script.
Reply
#9

halledildimi sorunun HeX123 ? bu arada SuitUp un modunuda зalmışsın
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)