SA-MP Forums Archive
ERRORS FAST HELP - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ERRORS FAST HELP (/showthread.php?tid=240629)



ERRORS FAST HELP - boyan96 - 16.03.2011

C:\Users\USer\Desktop\ Gang Wars \New Folder (2)\gamemodes\gangwars.pwn(302) : error 018: initialization data exceeds declared size
C:\Users\USer\Desktop\Gang Wars \New Folder (2)\gamemodes\gangwars.pwn(304) : error 010: invalid function or declaration


new TeamInfo[MAX_TEAMS][gInfo]= {
{"Civilian", CIVILIAN_COLOR, 0, 0, 0, 0, 0, "None","None","None","None","City Manager","Mayor",},
{"Grove Street Families", GROVE_COLOR, 0, 0, 0, 0, 0, "Gangsta","Original Gangster","Double OG","Left Hand","Right Hand","Boss"},
{"Rolling Height Ballas", BALLA_COLOR, 0, 0, 0, 0, 0, "Rank1","Rank2","Rank3","Rank4","Rank5","Leade r"},
{"Los Santos Vagos", VAGOS_COLOR, 0, 0, 0, 0, 0, "Rank1","Rank2","Rank3","Rank4","Rank5","Leade r"},
{"Varrio Los Aztecas", AZTECA_COLOR, 0, 0, 0, 0, 0, "Rank1","Rank2","Rank3","Rank4","Rank5","Leade r"},
{"Italian Mafia", TRIAD_COLOR, 0, 0, 0, 0, 0, "Driver","Guard","Killer","Manager","Right Hand","Godfather"},
{"Japanese Yakuza", YAKUZA_COLOR, 0, 0, 0, 0, 0, "Rank1","Rank2","Rank3","Rank4","Rank5","Leade r"},
{"Vinewood Cripz", CRIPZ_COLOR, 0, 0, 0, 0, 0, "Gangster","Professional Gangsta","Double OG","Triple OG","Co-Boss","Boss"},
{"Los Santos Police", POLICE_COLOR, 0, 0, 0, 0, 0, "Cadet","Officer","Sergeant","Inspector","Assi stan t Chief","Chief"},
{"Bad Boys", BADBOYS_COLOR, 0, 0, 0, 0, 0, "Gangster","Drug Dealer","Driver","Left Hand","Right Hand","Boss"},
{"Los Santos Army", COLOR_DARKGREEN, 0, 0, 0, 0, 0, "Private","Lieutenant","Captain","Major","Colo nel" ,"General"},
{"San Andreas Army Aviation", 0x62620040, 0, 0, 0, 0, 0, "Recruit","Soldier","Major","Captain","Command er", "General"},
{"Biker Boys", COLOR_RED, 0, 0, 0, 0, 0, "Helper","Guitar man","Beats man","Singer","Popular","Rock Star"},
{"Jizzy's Club", COLOR_PINK, 0, 0, 0, 0, 0, "Messenger","Soldier","Manager","Left Hand","Right Hand","Jizzy"},
{"Las Venturas Bloods", 0xADAD303A, 0, 0, 0, 0, 0, "Gangsta","OG","Double OG","Left Hand","Right Hand","Boss"},
{"Asian Triads", 0xFF80003E, 0, 0, 0, 0, 0, "Dealer","Gangsta","OGangsta","Left Hand","Right Hand","Da Boss"},
{"Los Santos MIB Agents", 0x3AD18D76, 0, 0, 0, 0, 0, "New Agent","Agent","Special Agent","Secret Agent","MIB Agent","Professional Agent"},
{"Russian Mafia", 0x8000FF72, 0, 0, 0, 0, 0, "Driver","Gangster","Original Gangster","Left Hand","Co-Boss","BOSS"},
{"LVPD (Las Venturas Police Departament)", POLICE_COLOR, 0, 0, 0, 0, 0, "Cadet","Officer","Sergeant","Inspector","Assi stan t Chief","Chief"},
{"C.I.A", 0x4E00008B, 0, 0, 0, 0, 0, "Agent","Agent","Agent","Agent","Agent","Agent "},
{"BULGARIA", 0xCCBBEECC, 0, 0, 0, 0, 0, "Agent","Agent","Agent","Agent","Agent","Agent "}
};


Re: ERRORS FAST HELP - THE_KNOWN - 16.03.2011

lines?


Re: ERRORS FAST HELP - boyan96 - 16.03.2011

282-304


Re: ERRORS FAST HELP - Ironboy - 16.03.2011

use this only 1 /
[pawn] [//pawn]


Re: ERRORS FAST HELP - boyan96 - 16.03.2011

WHERE YOU SEE SPACE I DON'T UNDERSTAND YOU


Re: ERRORS FAST HELP - boyan96 - 16.03.2011

Ironboy I don't understand what yo mean


Re: ERRORS FAST HELP - yarrum3 - 16.03.2011

Quote:
Originally Posted by boyan96
Посмотреть сообщение
Ironboy I don't understand what yo mean
He is saying use pawn tabs like. [pawn] [//pawn] at the start and the end off the code.

Ex
pawn Код:
new pawntabs
then it will say pawn code and it makes it better to read.


Re: ERRORS FAST HELP - boyan96 - 16.03.2011

Like this
new TeamInfo[MAX_TEAMS][gInfo]= {
[pawn]
{"Civilian", CIVILIAN_COLOR, 0, 0, 0, 0, 0, "None","None","None","None","City Manager","Mayor",},
{"Grove Street Families", GROVE_COLOR, 0, 0, 0, 0, 0, "Gangsta","Original Gangster","Double OG","Left Hand","Right Hand","Boss"},
{"Rolling Height Ballas", BALLA_COLOR, 0, 0, 0, 0, 0, "Rank1","Rank2","Rank3","Rank4","Rank5","Leade r"},
{"Los Santos Vagos", VAGOS_COLOR, 0, 0, 0, 0, 0, "Rank1","Rank2","Rank3","Rank4","Rank5","Leade r"},
{"Varrio Los Aztecas", AZTECA_COLOR, 0, 0, 0, 0, 0, "Rank1","Rank2","Rank3","Rank4","Rank5","Leade r"},
{"Italian Mafia", TRIAD_COLOR, 0, 0, 0, 0, 0, "Driver","Guard","Killer","Manager","Right Hand","Godfather"},
{"Japanese Yakuza", YAKUZA_COLOR, 0, 0, 0, 0, 0, "Rank1","Rank2","Rank3","Rank4","Rank5","Leade r"},
{"Vinewood Cripz", CRIPZ_COLOR, 0, 0, 0, 0, 0, "Gangster","Professional Gangsta","Double OG","Triple OG","Co-Boss","Boss"},
{"Los Santos Police", POLICE_COLOR, 0, 0, 0, 0, 0, "Cadet","Officer","Sergeant","Inspector","Assi stan t Chief","Chief"},
{"Bad Boys", BADBOYS_COLOR, 0, 0, 0, 0, 0, "Gangster","Drug Dealer","Driver","Left Hand","Right Hand","Boss"},
{"Los Santos Army", COLOR_DARKGREEN, 0, 0, 0, 0, 0, "Private","Lieutenant","Captain","Major","Colo nel" ,"General"},
{"San Andreas Army Aviation", 0x62620040, 0, 0, 0, 0, 0, "Recruit","Soldier","Major","Captain","Command er", "General"},
{"Biker Boys", COLOR_RED, 0, 0, 0, 0, 0, "Helper","Guitar man","Beats man","Singer","Popular","Rock Star"},
{"Jizzy's Club", COLOR_PINK, 0, 0, 0, 0, 0, "Messenger","Soldier","Manager","Left Hand","Right Hand","Jizzy"},
{"Las Venturas Bloods", 0xADAD303A, 0, 0, 0, 0, 0, "Gangsta","OG","Double OG","Left Hand","Right Hand","Boss"},
{"Asian Triads", 0xFF80003E, 0, 0, 0, 0, 0, "Dealer","Gangsta","OGangsta","Left Hand","Right Hand","Da Boss"},
{"Los Santos MIB Agents", 0x3AD18D76, 0, 0, 0, 0, 0, "New Agent","Agent","Special Agent","Secret Agent","MIB Agent","Professional Agent"},
{"Russian Mafia", 0x8000FF72, 0, 0, 0, 0, 0, "Driver","Gangster","Original Gangster","Left Hand","Co-Boss","BOSS"},
{"LVPD (Las Venturas Police Departament)", POLICE_COLOR, 0, 0, 0, 0, 0, "Cadet","Officer","Sergeant","Inspector","Assi stan t Chief","Chief"},
{"C.I.A", 0x4E00008B, 0, 0, 0, 0, 0, "Agent","Agent","Agent","Agent","Agent","Agent "},
{"BULGARIA", 0xCCBBEECC, 0, 0, 0, 0, 0, "Agent","Agent","Agent","Agent","Agent","Agent "}
};
[//pawn]


Re: ERRORS FAST HELP - THE_KNOWN - 16.03.2011

remove one / in [//pawn] at the end of your code


Re: ERRORS FAST HELP - boyan96 - 16.03.2011

C:\Users\USer\Desktop\ Gang Wars\New Folder (2)\gamemodes\gangwars.pwn(283) : error 029: invalid expression, assumed zero
C:\Users\USer\Desktop\Gang Wars\New Folder (2)\gamemodes\gangwars.pwn(305) : error 010: invalid function or declaration