SA-MP Forums Archive
Unknown error. - 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: Unknown error. (/showthread.php?tid=381445)



Unknown error. - John_Harper - 29.09.2012

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.



Re: Unknown error. - M3mPHi$_S3 - 29.09.2012

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


Re: Unknown error. - gtakillerIV - 29.09.2012

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


Re: Unknown error. - .v - 29.09.2012

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;
}



Re: Unknown error. - xMCx - 29.09.2012

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;
}



Re: Unknown error. - John_Harper - 29.09.2012

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.



Re: Unknown error. - ivanVU - 29.09.2012

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;
}



Re: Unknown error. - .v - 29.09.2012

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.


Re: Unknown error. - John_Harper - 29.09.2012

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.



Re: Unknown error. - .v - 29.09.2012

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?