Need Help Please
#1

I Need Help Please Why Am I Getting These Error Codes

Код:
C:\Documents and Settings\Administrator\Desktop\New GTA Server\gamemodes\DeathMatch.pwn(213) : warning 225: unreachable code
C:\Documents and Settings\Administrator\Desktop\New GTA Server\gamemodes\DeathMatch.pwn(213) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\New GTA Server\gamemodes\DeathMatch.pwn(213) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\New GTA Server\gamemodes\DeathMatch.pwn(213) : error 017: undefined symbol "cmd_credits"
C:\Documents and Settings\Administrator\Desktop\New GTA Server\gamemodes\DeathMatch.pwn(213) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\New GTA Server\gamemodes\DeathMatch.pwn(213) : fatal error 107: too many error messages on one line
This Is The Code Itself

Код:
COMMAND:credits(playerid, params[])
{
	SendClientMessage(playerid,COLOR_YELLOW, "Thank You to HayZatic For Making The Gamemode");
	SendClientMessage(playerid,COLOR_YELLOW, "Thank You to Ricardo For Making The AdminSystem");
	SendClientMessage(playerid,COLOR_YELLOW, "Me And Ricardo Thank You For Playing At The Server!");
	return 1;
}
Reply
#2

It appears you have a few indentation issues there. As well as from the 4th error you provided it seems you didn't include the ZCMD include.
Reply
#3

The Weird this is i did because i have other commands ill show you

Код:
COMMAND:kill(playerid, params[])
{
	SetPlayerHealth(playerid,0);
	SendClientMessage(playerid,COLOR_YELLOW, "You Have Killed Yourself");
	return 1;
COMMAND:credits(playerid, params[])
{
	SendClientMessage(playerid,COLOR_YELLOW, "Thank You to HayZatic For Making The Gamemode");
	SendClientMessage(playerid,COLOR_YELLOW, "Thank You to Ricardo For Making The AdminSystem");
	SendClientMessage(playerid,COLOR_YELLOW, "Me And Ricardo Thank You For Playing At The Server!");
	return 1;
}

COMMAND:weaponshop(playerid, params[])
{
	ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Welcome To PhIl's Weps", "Weapons\nAmmo\nItems", "Accept", "Cancel");
	return 1;
}
COMMAND:myteam(playerid, params[])
{
	if (pTeam[playerid] == team_Army)
	{
		SendClientMessage(playerid, COLOR_RED, "You Are In The Army");
  	}
	else if (pTeam[playerid] == team_FBI)
 	{
		SendClientMessage(playerid, COLOR_GREEN, "You Are An FBI Agent");
  	}
   	return 1;
}
And at The top i have

Код:
#include <a_samp>
#include <zcmd>

new pTeam[MAX_PLAYERS];
#define team_Army   2
#define team_FBI    1
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x3A47DEFF
#define COLOR_TAN 0xBDB76BAA
#define COLOR_PURPLE 0x800080AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_BLACK 0x00000000
#define COLOR_DARKGREY 0x696969FF
#define COLOR_RED 0xFF0000AA
#define COLOR_LIGHTGREEN 0x9ACD32AA
#if defined FILTERSCRIPT
#pragma dynamic 8192
#pragma tabsize 0
Reply
#4

Quote:
Originally Posted by Bmxerlmao5288
Посмотреть сообщение
The Weird this is i did because i have other commands ill show you

Код:
COMMAND:kill(playerid, params[])
{
	SetPlayerHealth(playerid,0);
	SendClientMessage(playerid,COLOR_YELLOW, "You Have Killed Yourself");
	return 1;
It seems you are missing a closing bracket for that command.
Reply
#5

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
It seems you are missing a closing bracket for that command.
Thank You Very Much You Are Correct It Fixed My Errors Sorry For My Slopiness lol
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)