Posts: 46
Threads: 13
Joined: Jul 2015
hey guys ! i just create gamemode and the line is 25k ! when i compile , is very long i waiting or maybe crash ! please help me !
Posts: 46
Threads: 13
Joined: Jul 2015
before that !
i added helmet system
and chnge
Quote:
/*if(gTeam[playerid] != gTeam[issuerid])
{
if(weaponid == 34 && WEAPON_BODY_PART_HEAD)
{
/*if(Helmet[playerid] == 1)
{
new nama[MAX_PLAYER_NAME]
new string[128]
GetPlayerName(playerid, nama, sizeof(nama));
GameTextForPlayer(playerid,"~r~- %s HAS HAVE HELMET ~g~ -20HP -!", nama, 3000,3);
format(string, sizeof(string), "[HELMET]: [%s] Has Have Helmet ! -20HP To Him", name);
SendClientMessage(0xFF0019FF,string);
}
else
{*/
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && WEAPON_BODY_PART_HEAD && gTeam[playerid] != gTeam[issuerid])
{
|
and after that i added in (OnDialogRespone) Buy Helmet ! after that i crash !
Posts: 561
Threads: 27
Joined: Sep 2012
If its crashes you should check on your recent script, it may be the reason.
Try deleting it and re-compile.
Posts: 46
Threads: 13
Joined: Jul 2015
And i incresead in buy item "cblue" a means color
sorry my bad english
Posts: 561
Threads: 27
Joined: Sep 2012
Did you try what I've told you ? you may have forgot a bracket "{".
Posts: 46
Threads: 13
Joined: Jul 2015
i have 3474 opening ! and 3474 closes
Posts: 216
Threads: 55
Joined: Feb 2016
Reputation:
0
Did you try taking out your recent edition to the script and recompile it? And you may have the same amounts bit are they all in the right places to match with each other?
Posts: 347
Threads: 78
Joined: Sep 2013
Reputation:
0
I know that the bigger the script gets the longer it takes to compile. But if it genuinely is crashing and isn't recovering (cause I know the script I work with takes a good 3 minutes to compile) then you're missing a bracket. I also know that invalid switch statements can cause it to.