Help me please.
#1

I spaced out the errors but if someone can help me fixed the warning that will help to please and thank you.

D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn( : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(9) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(10) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(11) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(12) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(13) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(14) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(15) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(16) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(17) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(1 : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(19) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(20) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(21) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(22) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(23) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(24) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(25) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(26) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(27) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(2 : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(29) : warning 216: nested comment


D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(34) : error 010: invalid function or declaration
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(36) : error 010: invalid function or declaration
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(39) : error 001: expected token: ";", but found "-identifier-"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(42) : error 021: symbol already defined: "getdate"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(46) : error 054: unmatched closing brace ("}")
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(47) : error 010: invalid function or declaration


D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : warning 203: symbol is never used: "d"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : warning 203: symbol is never used: "h"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : warning 203: symbol is never used: "list"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : warning 203: symbol is never used: "m"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : warning 203: symbol is never used: "mi"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : warning 203: symbol is never used: "s"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : warning 203: symbol is never used: "y"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Reply
#2

Firstly: Use [ pawn] your code [/ pawn] (without the spaces ofc).
Secondly:The "nested comment" warnings appear due to something like this:
Код:
/* Hello

/* I am answering a question.    <-----------This is a nested comment.

*/


Then somewhere you have */
While the proper format is
Код:
/* hello */
/*I am answerig a question.*/
And for the errors, you need to show the code so that I can see where the errors are. By the looks of it, it seems you put an extra bracket somewhere.

And for "symbol never used" warning, well, you have to use the symbol you have declared.
Reply
#3

Where should i put the items?
Reply
#4

Quote:
Originally Posted by creighmoe
Where should i put the items?
If you are asking how to insert code in between that...?
Код:
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn( : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(9) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(10) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(11) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(12) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(13) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(14) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(15) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(16) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(17) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(18) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(19) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(20) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(21) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(22) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(23) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(24) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(25) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(26) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(27) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(28) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(29) : warning 216: nested comment


D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(34) : error 010: invalid function or declaration
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(36) : error 010: invalid function or declaration
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(39) : error 001: expected token: ";", but found "-identifier-"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(42) : error 021: symbol already defined: "getdate"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(46) : error 054: unmatched closing brace ("}")
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(47) : error 010: invalid function or declaration


D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : warning 203: symbol is never used: "d"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : warning 203: symbol is never used: "h"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : warning 203: symbol is never used: "list"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : warning 203: symbol is never used: "m"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : warning 203: symbol is never used: "mi"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : warning 203: symbol is never used: "s"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : warning 203: symbol is never used: "y"
Pawn compiler 3.2.3664      Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Like hat :P
Reply
#5

okay but the extra bracket you said here is what I have down so far and please no one take this.
/*
--------------------------------------------------------------------------------
--------------------------Achievements: By Edward Carnby------------------------
--------------------------------------------------------------------------------
*/

/* - Achievements! , You will achieve "Medals" For doing Certain Things:
/*
/* Achievement 1 "I can Shout!" - Shout in the Chat for First Time.
/* Achievement 2 "One Hour!" - Play for one hour.
/* Achievement 3 "Five Hours!" - Play for five hours.
/* Achievement 4 "Illegal Weapons" - Buy a weapon from ammunation.
/* Achievement 5 "Yay for Admin" - Become a Admin.
/* Achievement 6 "Home Sweet Home" - Buy a house.
/* Achievement 7 "Fix a Car" - Repair a Car.
/* Achievement 8 "
/* Achievement 9 "
/* Achievement 10 "
/* Achievement 11 "
/* Achievement 12 "
/* Achievement 13 "
/* Achievement 14 "
/* Achievement 15 "
/* Achievement 16 "
/* Achievement 17 "
/* Achievement 18 "
/* Achievement 19 "
/* Achievement 20 "
/* Achievement 21 "More Coming Soon" - *More Coming Soon*
*/

#include <a_samp>

if(strcmp(cmd, "/achievements", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new list[] = "1\tI Can Shout\n2\tOne hour!\n3\tFive Hours!\n4\tIllegal Weapons\n5\tYay for Admin\n6\tHome Sweet Home\n7\tFix a Car\
ShowPlayerDialog(playerid,151,DIALOG_STYLE_LIST,"A chievements",list, "Ok","Cancel");
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s has Checked the Achievements",d,m,y,h,mi,s,sendername);
CommandLog(string);
}
return 1;
}

Reply
#6

Quote:
Originally Posted by DJDhan
Quote:
Originally Posted by creighmoe
Where should i put the items?
If you are asking how to insert code in between that...?
Код:
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn( : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(9) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(10) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(11) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(12) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(13) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(14) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(15) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(16) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(17) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(18) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(19) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(20) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(21) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(22) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(23) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(24) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(25) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(26) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(27) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(28) : warning 216: nested comment
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(29) : warning 216: nested comment


D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(34) : error 010: invalid function or declaration
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(36) : error 010: invalid function or declaration
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(39) : error 001: expected token: ";", but found "-identifier-"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(42) : error 021: symbol already defined: "getdate"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(46) : error 054: unmatched closing brace ("}")
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(47) : error 010: invalid function or declaration


D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : warning 203: symbol is never used: "d"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : warning 203: symbol is never used: "h"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : warning 203: symbol is never used: "list"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : warning 203: symbol is never used: "m"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : warning 203: symbol is never used: "mi"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : warning 203: symbol is never used: "s"
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : warning 203: symbol is never used: "y"
Pawn compiler 3.2.3664     Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Like hat :P
Sorry but I cant find where to put the code and before you ask yes I am new to scripting and this is my first script.
I'm more of a mapper but I'm trying to learn to script now as well.
Reply
#7

Код:
/*
--------------------------------------------------------------------------------
--------------------------Achievements: By Edward Carnby------------------------
--------------------------------------------------------------------------------
*/
Multiple lines are correctly commented here ^



Pff, Use double slashes if you want to comment only one line.

Код:
/* - Achievements! , You will achieve "Medals" For doing Certain Things:

  Achievement 1 "I can Shout!" - Shout in the Chat for First Time.
  Achievement 2 "One Hour!" - Play for one hour.
  Achievement 3 "Five Hours!" - Play for five hours.
  Achievement 4 "Illegal Weapons" - Buy a weapon from ammunation.
  Achievement 5 "Yay for Admin" - Become a Admin.
  Achievement 6 "Home Sweet Home" - Buy a house.
  Achievement 7 "Fix a Car" - Repair a Car.
  Achievement 8 "
  Achievement 9 "
  Achievement 10 "
  Achievement 11 "
  Achievement 12 "
  Achievement 13 ""
  Achievement 14 "
  Achievement 15 "
  Achievement 16 "
  Achievement 17 "
  Achievement 18 "
  Achievement 19 "
  Achievement 20 "
  Achievement 21 "More Coming Soon" - *More Coming Soon*
 
*/
Reply
#8

So i should remove these lines?
-------------------------------------------------------------------------------- <--
--------------------------Achievements: By Edward Carnby------------------------
-------------------------------------------------------------------------------- <--

And I still can't find out where to place that [pawn] Thing
Reply
#9

NO

You don't have to remove those lines. You have to replace your Achievements with my code.

You have this :

Код:
/*
--------------------------------------------------------------------------------
--------------------------Achievements: By Edward Carnby------------------------
--------------------------------------------------------------------------------
*/

/* - Achievements! , You will achieve "Medals" For doing Certain Things:
/*
/*  Achievement 1 "I can Shout!" - Shout in the Chat for First Time.
/*  Achievement 2 "One Hour!" - Play for one hour.
/*  Achievement 3 "Five Hours!" - Play for five hours.
/*  Achievement 4 "Illegal Weapons" - Buy a weapon from ammunation.
/*  Achievement 5 "Yay for Admin" - Become a Admin.
/*  Achievement 6 "Home Sweet Home" - Buy a house.
/*  Achievement 7 "Fix a Car" - Repair a Car.
/*  Achievement 8 "
/*  Achievement 9 "
/*  Achievement 10 "
/*  Achievement 11 "
/*  Achievement 12 "
/*  Achievement 13 "
/*  Achievement 14 "
/*  Achievement 15 "
/*  Achievement 16 "
/*  Achievement 17 "
/*  Achievement 18 "
/*  Achievement 19 "
/*  Achievement 20 "
/*  Achievement 21 "More Coming Soon" - *More Coming Soon*
*/

#include <a_samp>

  if(strcmp(cmd, "/achievements", true) == 0)
  {
    if(IsPlayerConnected(playerid))
    {
      new list[] = "1\tI Can Shout\n2\tOne hour!\n3\tFive Hours!\n4\tIllegal Weapons\n5\tYay for Admin\n6\tHome Sweet Home\n7\tFix a Car\
      ShowPlayerDialog(playerid,151,DIALOG_STYLE_LIST,"Achievements",list, "Ok","Cancel");
      new y, m, d;
     new h,mi,s;
     getdate(y,m,d);
     gettime(h,mi,s);
     format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s has Checked the Achievements",d,m,y,h,mi,s,sendername);
     CommandLog(string);
   }
   return 1;
  }
Replace it wit this:

Код:
/*
--------------------------------------------------------------------------------
--------------------------Achievements: By Edward Carnby------------------------
--------------------------------------------------------------------------------
*/

#include <a_samp>

/* - Achievements! , You will achieve "Medals" For doing Certain Things:

  Achievement 1 "I can Shout!" - Shout in the Chat for First Time.
  Achievement 2 "One Hour!" - Play for one hour.
  Achievement 3 "Five Hours!" - Play for five hours.
  Achievement 4 "Illegal Weapons" - Buy a weapon from ammunation.
  Achievement 5 "Yay for Admin" - Become a Admin.
  Achievement 6 "Home Sweet Home" - Buy a house.
  Achievement 7 "Fix a Car" - Repair a Car.
  Achievement 8 "
  Achievement 9 "
  Achievement 10 "
  Achievement 11 "
  Achievement 12 "
  Achievement 13 ""
  Achievement 14 "
  Achievement 15 "
  Achievement 16 "
  Achievement 17 "
  Achievement 18 "
  Achievement 19 "
  Achievement 20 "
  Achievement 21 "More Coming Soon" - *More Coming Soon*
 



if(strcmp(cmdtext, "/achievements", true,13 ) == 0)
  {
    if(IsPlayerConnected(playerid))
    {
      new list[] = "1\tI Can Shout\n2\tOne hour!\n3\tFive Hours!\n4\tIllegal Weapons\n5\tYay for Admin\n6\tHome Sweet Home\n7\tFix a Car\
      ShowPlayerDialog(playerid,151,DIALOG_STYLE_LIST,"Achievements",list, "Ok","Cancel");
      new y, m, d;
     new h,mi,s;
     getdate(y,m,d);
     gettime(h,mi,s);
     format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s has Checked the Achievements",d,m,y,h,mi,s,sendername);
     CommandLog(string);
   }
   return 1;
  }
THAT'S IT!!
Reply
#10

"Thank You So Much" That worked out perfectly thank you. But there's only 1 error left now here it is

D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\[FS]Achievements.pwn(51) : error 001: expected token: "*/", but found "-end of file-"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)