Errors need help please - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Errors need help please (
/showthread.php?tid=562925)
Errors need help please -
semaj - 12.02.2015
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;
}
Re: Errors need help please -
HazardouS - 12.02.2015
One of your colors is defined as X191970AA, redefine it as 0x191970AA.
Re: Errors need help please -
IndependentGaming - 12.02.2015
Where do you have this in your script
Re: Errors need help please -
semaj - 12.02.2015
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
Re: Errors need help please -
HazardouS - 12.02.2015
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 { .
Re: Errors need help please -
semaj - 12.02.2015
thanks guys that seems to fix it