fatal error 107: too many error messages on one line[Commands] -
Jason_Dino - 26.10.2012
Hi guys. So this is my first time attempting to script and as you would know by the title, I have got a fatal error which prevents me from compiling the Script. I have two commands for Law Enforcement Officials and I believe the /showbadge caused the fatal error. If anyone is willing to help I'd be glad and appreciative!
C:\Users\*\Desktop\GTA SAMP Server\Command Centre\filterscripts\Sheriff Commands.pwn(97) : error 029: invalid expression, assumed zero
C:\Users\*\Desktop\GTA SAMP Server\Command Centre\filterscripts\Sheriff Commands.pwn(97) : error 017: undefined symbol "cmd_ShowSDIdentity"
C:\Users\*\Desktop\GTA SAMP Server\Command Centre\filterscripts\Sheriff Commands.pwn(97) : error 029: invalid expression, assumed zero
C:\Users\*\Desktop\GTA SAMP Server\Command Centre\filterscripts\Sheriff Commands.pwn(97) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
EDIT: Sure. CMD:ShowSDIdentity(playerid, params[])
I also forgot to mention I have #included zcmd, sscanff2. So I'm using them.
Re: fatal error 107: too many error messages on one line[Commands] -
Abhishek. - 26.10.2012
well sir
mind posting that command or the line 97
please
Re: fatal error 107: too many error messages on one line[Commands] -
Jason_Dino - 26.10.2012
So nobody can help me? I'll post my script here.
pawn Code:
CMD:ShowSDIdentity(playerid, params[])
{
new giveplayerid,string[128],string2[128];
if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /ShowSDIdentity");
if (PlayerInfo[playerid][pMember]== 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(IsPlayerConnected(giveplayerid))
{
SendClientMessageEx(giveplayerid, COLOR_BLUE, "--------------------------------------------------------------------");
format(string, sizeof(string), "Deputy Sheriff %s is a Sworn member of Bone County Sheriff's Department");
SendClientMessageEx(giveplayerid, COLOR_BLUE, string); //The /ShowSDIdentity cannot read the "sscanf" file, again.
SendClientMessageEx(giveplayerid, COLOR_DARKGREEN, "Current Assignment: General Duties");
SendClientMessageEx(giveplayerid, COLOR_DARKGREEN, "Under Authority of the San Andreas County Goverment");
SendClientMessageEx(giveplayerid, COLOR_DARKGREEN, "Official has the Authority to arrest, and assist in arrests.");
SendClientMessageEx(giveplayerid, COLOR_BLUE, "--------------------------------------------------------------------");
format(string, sizeof(string), "You have shown you're Sheriff's Department Identity Card to %s", GetPlayerNameEx(giveplayerid));
SendClientMessageEx(giveplayerid, COLOR_LIGHTBLUE, string2);
}
else
{
SendClientMessageEx(playerid, COLOR_RED, "Invaild_ID!");
}
}
else
{
SendClientMessageEx(playerid, COLOR_RED, "You do not currently posse a Official Sheriff Department Identity Card!");
}
return 1;
I don't have a faction scripted in, I don't know if this may of what caused the problem. Could somebody point out to me what is wrong and should I change with the script please?
Re: fatal error 107: too many error messages on one line[Commands] -
Faisal_khan - 26.10.2012
Please mention the line 97. And use pawn tags like [pawn] your code [/panw] panw will be pawn.
Re: fatal error 107: too many error messages on one line[Commands] -
Jason_Dino - 26.10.2012
Done. now it's a pawn code instead of quote.
And this is line 97:
pawn Code:
CMD:ShowSDIdentity(playerid, params[])
This is the ONLY thing on this line, nothing else. Which is why it confuses me.
Re: fatal error 107: too many error messages on one line[Commands] -
Faisal_khan - 26.10.2012
Make sure you have #include <zcmd>
Re: fatal error 107: too many error messages on one line[Commands] -
gtakillerIV - 26.10.2012
Might be case sensitive.
So instead of using:
PHP Code:
CMD:ShowSDIdentity(playerid, params[])
Use:
PHP Code:
CMD:showsdidentity(playerid,params[])
Re: fatal error 107: too many error messages on one line[Commands] -
Jason_Dino - 26.10.2012
pawn Code:
#define FILTERSCRIPT
#include <a_samp>
#include <sscanf2>
#include <zcmd>
#include <dutils>
#define COLOR_DARKGREEN 0x008000FF
#define COLOR_BLUE 0x000080FF
#define COLOR_LIGHTBLUE 0x0000FFFF
#define COLOR_RED 0x800000FF
#if defined FILTERSCRIPT
These are all the #defined and #include. These are already in there.
Thanks for the suggestion to use
pawn Code:
CMD:showsdidentity(playerid,params[])
however it still causes the same exact error. Thank you for trying to help anyway. Should I post the script in the pastebin? Maybe it'll be easier.
Re: fatal error 107: too many error messages on one line[Commands] -
Faisal_khan - 26.10.2012
Did you tried what gtakillerIV said?
Re: fatal error 107: too many error messages on one line[Commands] -
gtakillerIV - 26.10.2012
Yes please post it in pastebin with good identation so we can see what's wrong.