Howdy!
I have been searching in my gamemode for over 2 hours now and I couldn't find any solution for this shit, I can't compile my gamemode at all.
I have tried to find a missing brackets but could not find any, I went through SA-MP Forum to find a Missing Brackets program and I found two which worked for me, both of them have the same results:
I went to line 16972 as the program say, but nothing seems fishy, it's all fine:
I removed that command to check out if it's the issue and checked the Missing Brackets program again and the results seemed fine. Tried to compile the gamemode again and it crashed ..
I tried to remove the last things I added. Same shit, crashed.
Any ideas of how I could solve this?
Thanks.
I have been searching in my gamemode for over 2 hours now and I couldn't find any solution for this shit, I can't compile my gamemode at all.
I have tried to find a missing brackets but could not find any, I went through SA-MP Forum to find a Missing Brackets program and I found two which worked for me, both of them have the same results:
Code:
The bracket which was Opened at line number 16972 was not closed.
Number of Opening brackets : 7003
Number of Closing brackets 7002
PHP Code:
CMD:boss(playerid, params[])
{
new string[94], mainstr[256], found = 0;
foreach(new i : Player)
{
if(pTeam[i] != NO_GANG && Info[i][Skills][pTeam[i]] > 5000)
{
found++;
format(string, sizeof(string), "{FFFFFF}%s (%d) {%06x)(%d skills)\n", GetName(i), i, GetPlayerColor(i) >>> 8, Info[i][Skills][pTeam[i]]);
strcat(mainstr, string);
}
}
if(found == 0) ShowPlayerDialog(playerid, WARN, DIALOG_STYLE_MSGBOX, "Note", "{FF0000}No gangs boss found", "Close", "");
else ShowPlayerDialog(playerid, WARN, DIALOG_STYLE_MSGBOX, "Gang Boss", string, "Close", "");
return 1;
}
I tried to remove the last things I added. Same shit, crashed.
Any ideas of how I could solve this?
Thanks.