Posts: 596
Threads: 75
Joined: Nov 2015
Here you go:
Код:
//----------------------
// Admin Tag
//----------------------
if(PlayerInfo[playerid][Admin] == 3)
{
new Str1[128];
format(Str1, sizeof(Str1), "{996666}[ADMIN] {25A5A8}%s: {FFFFFF}(%d): %s",GetName(playerid), playerid, text);
SendClientMessageToAll(0xFFFFFF ,Str1);
return 1;
}
else if(PlayerInfo[playerid][Admin] == 4)
{
new Str2[128];
format(Str2, sizeof(Str2), "{996666}[LEADER] {25A5A8}%s: {FFFFFF}(%d): %s",GetName(playerid), playerid, text);
SendClientMessageToAll(0xFFFFFF ,Str2);
return 1;
}
else if(PlayerInfo[playerid][Admin] == 2)
{
new Str3[128];
format(Str3, sizeof(Str3), "{996666}[MOD] {25A5A8}%s: {FFFFFF}(%d): %s",GetName(playerid), playerid, text);
SendClientMessageToAll(0xFFFFFF ,Str3);
return 1;
}
Posts: 87
Threads: 2
Joined: Sep 2014
Reputation:
0
Make sure there is no missing bracket before the start of this code, your code seems fine. Try commenting out some of the previous part to check if something is wrong with it.
Posts: 87
Threads: 2
Joined: Sep 2014
Reputation:
0
Look out if there is an extra '}' before the line it's giving error on. If this doesn't help, please post the full code of this function from where it is starting.
Posts: 87
Threads: 2
Joined: Sep 2014
Reputation:
0
I'm sorry bro but I won't be able to help you privately, it's against the rules to help privately. You can post only this function code and I'll try my best to resolve the issue for you. If not, you can try to comment out the part of the function which is giving error which you can start from /* and end with */
Posts: 74
Threads: 8
Joined: Apr 2014
Reputation:
0
i didn't understand from where i copy my gamemode ! i just comment the whole function from where it start
Posts: 6,242
Threads: 8
Joined: Jun 2008
Quote:
Originally Posted by PuN1Sh3r
i didn't understand from where i copy my gamemode ! i just comment the whole function from where it start
|
Copy the actual text, stop screenshotting the error window.