4 errors who ruined my gm
#1

Код:
G:\FreakWorld RPG Macedoniaa\gamemodes\FW.pwn(10636) : error 029: invalid expression, assumed zero
G:\FreakWorld RPG Macedoniaa\gamemodes\FW.pwn(10636) : error 029: invalid expression, assumed zero
G:\FreakWorld RPG Macedoniaa\gamemodes\FW.pwn(10713) : warning 219: local variable "ftext" shadows a variable at a preceding level
G:\FreakWorld RPG Macedoniaa\gamemodes\FW.pwn(10713) : warning 204: symbol is assigned a value that is never used: "ftext"
G:\FreakWorld RPG Macedoniaa\gamemodes\FW.pwn(11254) : error 004: function "ShowStats" is not implemented
G:\FreakWorld RPG Macedoniaa\gamemodes\FW.pwn(11416) : error 004: function "ShowStats" is not implemented
G:\FreakWorld RPG Macedoniaa\gamemodes\FW.pwn(12401) : warning 225: unreachable code
G:\FreakWorld RPG Macedoniaa\gamemodes\FW.pwn(34028) : warning 203: symbol is never used: "ftext"
LINE 10636
Код:
public OnPlayerCommandText(playerid, cmdtext[]
=
Код:
error 029: invalid expression, assumed zero
LINW 10713
Код:
new ftext[20];
=
Код:
warning 219: local variable "ftext" shadows a variable at a preceding level
LINE 11254
Код:
	
        if (strcmp(cmd, "/stats", true) == 0)
	{
     	if(IsPlayerConnected(playerid))
	    {
		  if (gPlayerLogged[playerid] != 0)
		  {
		  GetPlayerName(playerid, sendername, sizeof(sendername));
		  format(string, sizeof(string), "%s ja poglednuva svojata licna karta", sendername);
		  ProxDetector(30.0, playerid, string,                 COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                  SetPlayerChatBubble(playerid, string, COLOR_PURPLE, 100.0, 5000);
LINE 11254--->ShowStats(playerid,playerid);
		 }
		 else
		 {
			SendClientMessage(playerid, COLOR_GRAD1, "   Ne ste logirani !");
		 }
	}
	return 1;
}
LINE 11416
Код:
	if (strcmp(cmd, "/check", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGameMaster] >= 1)
			{
				tmp = strtok(cmdtext, idx);
				if(!strlen(tmp))
				{
					SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /check [playerid/PartOfName]");
					return 1;
				}
				//giveplayerid = strval(tmp);
	            giveplayerid = ReturnUser(tmp);
				if(IsPlayerConnected(giveplayerid))
				{
				    if(giveplayerid != INVALID_PLAYER_ID)
				    {
						ShowStats(playerid,giveplayerid);
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_GRAD1, "   No Such Player");
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   You are not an admin or GameMaster");
			}
		}
		return 1;
	}
LINE 12401
Код:
	if(strcmp(cmd, "/government", true) == 0 || strcmp(cmd, "/gov", true) == 0)
LINE 34028 no lines anymore
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
- You missed a bracket.

pawn Код:
new ftext[20];
- Do you have ftext somewhere else in your script?

Line11254
Add the following to your gamemode;
pawn Код:
new ShowStats[MAX_PLAYERS]
Reply
#3

I can't help on everything but some lines yes:
LINE 10636
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])//<==============
LINE 12401
from this
pawn Код:
if(strcmp(cmd, "/government", true) == 0 || strcmp(cmd, "/gov", true) == 0)
to this
pawn Код:
if(strcmp(cmd, "/government", true) == 0) || strcmp(cmd, "/gov", true) == 0)
Reply
#4

ok i have 3-4 copies from the gm now i started the 3rd copy i have now
Quote:

new Pokana or new Pokana[MAX_PLAYERS];

second
Quote:

new ftext[20]; = error 020: invalid symbol name ""

new errors
Quote:

G:\FreakWorld RPG Macedoniaa\gamemodes\Copy (3) of FW - Copy - Copy.pwn(2429) : error 017: undefined symbol "ftext"
G:\FreakWorld RPG Macedoniaa\gamemodes\Copy (3) of FW - Copy - Copy.pwn(2430) : error 017: undefined symbol "ftext"
G:\FreakWorld RPG Macedoniaa\gamemodes\Copy (3) of FW - Copy - Copy.pwn(2431) : error 029: invalid expression, assumed zero
G:\FreakWorld RPG Macedoniaa\gamemodes\Copy (3) of FW - Copy - Copy.pwn(2431) : warning 215: expression has no effect
G:\FreakWorld RPG Macedoniaa\gamemodes\Copy (3) of FW - Copy - Copy.pwn(2431) : error 001: expected token: ";", but found "]"
G:\FreakWorld RPG Macedoniaa\gamemodes\Copy (3) of FW - Copy - Copy.pwn(2431) : error 029: invalid expression, assumed zero
G:\FreakWorld RPG Macedoniaa\gamemodes\Copy (3) of FW - Copy - Copy.pwn(2431) : fatal error 107: too many error messages on one line

line 2431
Код:
Pokana[playerid] = 1;
Reply
#5

More lines required. Include at least 2 lines before error line
Reply
#6

what lines to put tell me idk

EDIT:i made this 2+
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "{37F906}INFO:{FFFFFF}%s ja prifati ponudata za vlez vo %s.", sendername,ftext);
SendClientMessage(playerid, COLOR_BLUE, string);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
SendClientMessage(playerid, COLOR_WHITE, string);

Pokana[playerid] = 1;
Reply
#7

>Include at least 2 lines before error line
>at least 2 lines before error line
>2 lines before error line

2425 -2431
Reply
#8

refresh
Reply
#9

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]
Should be:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
Reply
#10

Quote:
Originally Posted by imnoob
Посмотреть сообщение
ok i have 3-4 copies from the gm now i started the 3rd copy i have now

second

new errors

line 2431
Код:
Pokana[playerid] = 1;
TELL ME THIS ERRORS :@
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)