whats this -
andrewgrob - 01.05.2012
C:\Documents and Settings\Andrew\Desktop\server\gamemodes\WWSC.pwn( 407) : error 037: invalid string (possibly non-terminated string)
C:\Documents and Settings\Andrew\Desktop\server\gamemodes\WWSC.pwn( 407) : error 017: undefined symbol "Usage"
C:\Documents and Settings\Andrew\Desktop\server\gamemodes\WWSC.pwn( 407) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Andrew\Desktop\server\gamemodes\WWSC.pwn( 407) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
------------ bit of code
// Define Teams
#define TEAM_MARINE 1
#define TEAM_TERRORIST 2
// Define Colors
#define COLOR_BLUE 0x0000FFAA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_DRED 0x990000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_DBLUE 0x003366AA
#define COLOR_AQUA 0x33FFCCAA
#define COLOR_WHITE 0xFFFFFFFF
// Other Defines
#define name
// Radius Chat (Realchat)
new realchat = 1;
// gNew
new gTeam[MAX_PLAYERS];
new gPlayerClass[MAX_PLAYERS];
// Forwards (Self Explanitory)
forward SetupPlayerForClassSelection(playerid);
forward PlayerToPoint (Float:radi, playerid, Float

, Float:y, Float:z);
forward SetPlayerClass(playerid, classid);
forward PlayerName(playerid);
// Random MSG Forward
forward SendMSG();
Re: whats this -
TheDominator - 01.05.2012
Show us line 407.
Re: whats this -
andrewgrob - 01.05.2012
dcmd_all(const playerid, const params[])
{
if(!params[0]) return SendClientMessage(playerid,COLOR_WHITE,"Usage Error: /all [Message]);
if(strlen(params) > 120) return SendClientMessage(playerid,COLOR_DRED, "Error: Input too long. Please shorten your message to 120 chars.");
new string128[128];
format(string128, sizeof(string12

, "[%i][All] %s",playerid,params);
SendPlayerMessageToAll(playerid,string12

;
return 1;
}
Re: whats this -
andrewgrob - 01.05.2012
haha fixed it. i have missing code thanks anyways. ill give rep
Re: whats this -
Yuryfury - 01.05.2012
pawn Код:
dcmd_all(const playerid, const params[])
{
if(!params[0]) return SendClientMessage(playerid,COLOR_WHITE,"Usage Error: /all [Message]"); //you forgot the quotation mark after [Message]
if(strlen(params) > 120) return SendClientMessage(playerid,COLOR_DRED, "Error: Input too long. Please shorten your message to 120 chars.");
new string128[128];
format(string128, sizeof(string12, "[%i][All] %s",playerid,params);
SendPlayerMessageToAll(playerid,string12;
return 1;
}
Use [ pawn][/ pawn] tags please!
Re: whats this -
TheDominator - 01.05.2012
pawn Код:
dcmd_all(const playerid, const params[]_
{
if(!params[0]) return SendClientMessage(playerid,COLOR_WHITE,"Usage Error: /all [Message]");
if(strlen(params) > 120) return SendClientMessage(playerid,COLOR_DRED, "Error: Input too long. Please shorten your message to 120 chars.");
new string128[128];
format(string128, sizeof(string12, "[%i][All] %s",playerid,params);
SendPlayerMessageToAll(playerid,string12;
return 1;
}
You seemed to have missed out a " on the line:
pawn Код:
if(!params[0]) return SendClientMessage(playerid,COLOR_WHITE,"Usage Error: /all [Message]);
This is how it should be:
pawn Код:
if(!params[0]) return SendClientMessage(playerid,COLOR_WHITE,"Usage Error: /all [Message]");
Re: whats this -
TheDominator - 01.05.2012
Quote:
Originally Posted by Yuryfury
pawn Код:
dcmd_all(const playerid, const params[]) { if(!params[0]) return SendClientMessage(playerid,COLOR_WHITE,"Usage Error: /all [Message]"); //you forgot the quotation mark after [Message] if(strlen(params) > 120) return SendClientMessage(playerid,COLOR_DRED, "Error: Input too long. Please shorten your message to 120 chars."); new string128[128]; format(string128, sizeof(string12, "[%i][All] %s",playerid,params); SendPlayerMessageToAll(playerid,string12; return 1; }
Use [ pawn][/ pawn] tags please! 
|
Damn am always beaten xD