Unknown error.
#1

I did import this CMD to the script and when i run it it show me the error:

[spoiler]



[/spoiler]

Then it shows me this
Код:
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4976) : error 001: expected token: ";", but found "?"
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4976) : error 029: invalid expression, assumed zero
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4976) : error 017: undefined symbol "z"
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4976) : fatal error 107: too many error messages on one line

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


4 Errors.
Reply
#2

show the codes in pawn and tell me whch line is 4976 ?
Reply
#3

Line is And use [code][/ code] So we can help abit.
Reply
#4

pawn Код:
if(!strmp("/createbox, cmdtext, true,10))
{
  new Float:x,Float:y,float:z;
  GetPlayerPos(playerid,x,y,z);
  box = CreateObject(1220,x,y,z,0,0,0);
  return 1;
}
Reply
#5

you entered "?" by mistake heres the correction
pawn Код:
if(!strmp("/createbox, cmdtext, true,10))
{
  new Float:x,Float:y,float:z;
  GetPlayerPos(playerid,x,y,z);
  box = CreateObject(1220,x,y,z,0,0,0);
  return 1;
}
Reply
#6

It brought me this now lool
Код:
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4974) : error 017: undefined symbol "strmp"
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4977) : warning 213: tag mismatch
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4978) : warning 213: tag mismatch
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4981) : warning 217: loose indentation
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4984) : warning 217: loose indentation
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4986) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#7

Here, this will work!

Код:
if(!strcmp("/createbox, cmdtext, true,10))
{
  new Float:x,Float:y,float:z;
  GetPlayerPos(playerid,x,y,z);
  box = CreateObject(1220,x,y,z,0,0,0);
  return 1;
}
Reply
#8

Quote:
Originally Posted by John_Harper
Посмотреть сообщение
It brought me this now lool
Код:
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4974) : error 017: undefined symbol "strmp"
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4977) : warning 213: tag mismatch
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4978) : warning 213: tag mismatch
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4981) : warning 217: loose indentation
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4984) : warning 217: loose indentation
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4986) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Post the line that give warning for tag mismatch and loose indentation.
Reply
#9

Here is everything and all i get this lol
Код:
if(!strcmp("/createbox, cmdtext, true,10))
 {
  new Float:x,Float:y,float:z;
  GetPlayerPos(playerid,x,y,z);
  box = CreateObject(1220,x,y,z,0,0,0);
  return 1;
  }
if (!strcmp("/removebox", cmdtext, true, 10))
{
   DestroyObject(box);
    return 1;
}
ERROR
Код:
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4974) : error 037: invalid string (possibly non-terminated string)
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4977) : warning 213: tag mismatch
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4978) : warning 213: tag mismatch
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4981) : warning 217: loose indentation
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4984) : warning 217: loose indentation
C:\Users\Toshiba\Desktop\San Andreas Multipe player\Server\gamemodes\Server.pwn(4986) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#10

This is for loose indentation.

pawn Код:
if(!strcmp("/createbox, cmdtext, true,10))
{
  new Float:x,Float:y,float:z;
  GetPlayerPos(playerid,x,y,z);
  box = CreateObject(1220,x,y,z,0,0,0);
  return 1;
}
if (!strcmp("
/removebox", cmdtext, true, 10))
{
   DestroyObject(box);
   return 1;
}

And could you also post exactly what code give warnings?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)