(error) script after /changename
#1

I got this errors after making /changename:
Quote:

C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(9 : warning 235: public function lacks forward declaration (symbol "CountDown")
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(159) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(192) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(205) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(209) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(235) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(23 : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(24 : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(263) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(270) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(277) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(280) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(29 : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(309) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(314) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(32 : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(331) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(33 : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(339) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(347) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(34 : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(350) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(357) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(364) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(396) : error 030: compound statement not closed at the end of file (started at line 11
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Script: http://pastebin.com/hndUCWhD

Please help!
Reply
#2

C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(9 : warning 235: public function lacks forward declaration (symbol "CountDown")

put forward ....

forward CountDown();

and

393 put }
Reply
#3

the problem is that you forgot a } at the end of the file
theese other warnings are because you made everithing in a single row:

example:
Код:
if(strcmp(cmdtext,"/aclearchat",true)==0)
   {
     if(adminlevel[playerid] == 7)
     {
     GetPlayerName(playerid, playername, sizeof(playername));
     SendClientMessageToAll(COLOR_GREY," ");
     SendClientMessageToAll(COLOR_GREY," ");
     SendClientMessageToAll(COLOR_GREY," ");
     SendClientMessageToAll(COLOR_GREY," ");
     SendClientMessageToAll(COLOR_GREY," ");
     SendClientMessageToAll(COLOR_GREY," ");
     SendClientMessageToAll(COLOR_GREY," ");
     SendClientMessageToAll(COLOR_GREY," ");
     SendClientMessageToAll(COLOR_GREY," ");
     SendClientMessageToAll(COLOR_GREY," ");
      format(string,sizeof(string),"Admin %s has cleared the chat", playername);
      SendClientMessageToAll(COLOR_GREEN, string);
}
     return 1;
     }
it should look like this:

Код:
if(strcmp(cmdtext,"/aclearchat",true)==0)
{
	if(adminlevel[playerid] == 7)
	{
		GetPlayerName(playerid, playername, sizeof(playername));
		SendClientMessageToAll(COLOR_GREY," ");
		SendClientMessageToAll(COLOR_GREY," ");
		SendClientMessageToAll(COLOR_GREY," ");
		SendClientMessageToAll(COLOR_GREY," ");
		SendClientMessageToAll(COLOR_GREY," ");
		SendClientMessageToAll(COLOR_GREY," ");
		SendClientMessageToAll(COLOR_GREY," ");
		SendClientMessageToAll(COLOR_GREY," ");
		SendClientMessageToAll(COLOR_GREY," ");
		SendClientMessageToAll(COLOR_GREY," ");
		format(string,sizeof(string),"Admin %s has cleared the chat", playername);
		SendClientMessageToAll(COLOR_GREEN, string);
	}
return 1;
}
Reply
#4

wow im good man

http://pastebin.com/1CfZHFqk

wow
Reply
#5

Thanks but now if i type /changename example then there comes this name is already in use and even if i type /changename only it comes and if i do /changepass or /changepass hello there happens nothing please help!!
Reply
#6

There we go again!
pawn Код:
if ( !strcmp ( cmd, "/changename", true ) )
{
  tmp = strtok(cmdtext, idx);
  if(logged[playerid] == 0)
  {
   SendClientMessage(playerid, COLOR_RED, "SERVER: You Are Not Logged In");
   return 1;
  }
  if(!strlen(tmp))
  {
    SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /changenick [newname]");
    return 1;
  }
  new newname[24] = strval(tmp); // dunno if this works (else change it)
  if (!dini_Exists(newname))
  {
   format(string3, sizeof(string3),"%s has changed he's name to %s.", playername,tmp);
   SendClientMessageToAll(COLOR_YELLOW, string3);
   dini_Remove(udb_encode(playername));
   SetPlayerName(playerid, tmp);
   GetPlayerName(playerid, playername, 24); // needed!
   dini_Create(udb_encode(playername));
   dini_IntSet... // everything
  }
  else
  {
   SendClientMessage(playerid, COLOR_RED, "This name is already in use");
   return 1;
  }
Reply
#7

I have now this errors:

Quote:

C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(316) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(320) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(323) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(325) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(334) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(335) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(336) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(338 -- 339) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(343) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(347) : warning 217: loose indentation
C:\Documents and Settings\Eigenaar\Bureaublad\Minigames\filterscrip ts\Minigame.pwn(409) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Script: http://pastebin.com/y1V8S0TL
Reply
#8

Remove

pawn Код:
dini_IntSet
Reply
#9

I can now change my name 1 time, if i do again there comes, username allready in use and /changepass does still not work
help me pleas!
Reply
#10

And /makemeadmin doenst work now to

Script:
http://pastebin.com/FqB9H36J
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)