Errors need help please
#1

can anyone make sence of this i cant get it to work


Код:
C:\Users\james\Desktop\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(5276) : error 029: invalid expression, assumed zero
C:\Users\james\Desktop\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(5276) : error 017: undefined symbol "X191970AA"
C:\Users\james\Desktop\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(5276) : error 029: invalid expression, assumed zero
C:\Users\james\Desktop\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(5276) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Код:
CMD:factions(playerid,params[])
{
    if(IsJailedOrMuted(playerid))return 1;
	SendClientMessage(playerid,RED,"TS Roleplay  Factions");
 	SendClientMessage(playerid,BLUE,"Cop");//Cop
  	SendClientMessage(playerid,YELLOWGREEN,"N.O.O.S.E"); // Army
	SendClientMessage(playerid,LAWNGREEN,"The Company");// FBI
	SendClientMessage(playerid,YELLOW,"The Milano Family"); //Mafia
	SendClientMessage(playerid,WHITE,"San Andreas Hospital"); //Hospital
    SendClientMessage(playerid,GREY,"Ninkyo Dantai");//Mafia family
   	SendClientMessage(playerid,GREEN,"Grove Street Families");
	SendClientMessage(playerid,MIDNIGHTBLUE,"Sheriff Dept"); //San Andreas Sheriff Dept
{
	return 1;
}
Reply
#2

One of your colors is defined as X191970AA, redefine it as 0x191970AA.
Reply
#3

Where do you have this in your script

Код:
X191970AA
Reply
#4

i have sorted that now i get

Код:
C:\Users\james\Desktop\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(5277) : warning 209: function "cmd_factions" should return a value
C:\Users\james\Desktop\GTA SA\new rp\samp03z_svr_R1_win32\gamemodes\New.pwn(5278) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Reply
#5

Replace your command with this:
pawn Код:
CMD:factions(playerid,params[])
{
    if(IsJailedOrMuted(playerid))return 1;
    SendClientMessage(playerid,RED,"TS Roleplay  Factions");
    SendClientMessage(playerid,BLUE,"Cop");//Cop
    SendClientMessage(playerid,YELLOWGREEN,"N.O.O.S.E"); // Army
    SendClientMessage(playerid,LAWNGREEN,"The Company");// FBI
    SendClientMessage(playerid,YELLOW,"The Milano Family"); //Mafia
    SendClientMessage(playerid,WHITE,"San Andreas Hospital"); //Hospital
    SendClientMessage(playerid,GREY,"Ninkyo Dantai");//Mafia family
    SendClientMessage(playerid,GREEN,"Grove Street Families");
    SendClientMessage(playerid,MIDNIGHTBLUE,"Sheriff Dept"); //San Andreas Sheriff Dept
    return 1;
}
You had an extra { .
Reply
#6

thanks guys that seems to fix it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)