- 0
o eroare rara :)error 003: declaration of a....
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
gunskill
[pawn]error 003: declaration of a local variable must appear in a compound block[/pawn]
ce are ware?
[pawn]if(strcmp(cmd, "/s", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(WarDuty == 1)
new string[128];
new string2[128];
new string3[128];
new string4[128];
new string5[128];
new string6[128];
new string7[128];
new string8[128];
{
format(string, sizeof(string), " Ballas :{FFFFFF} %d Kills/n", Factiunea1);
format(string2, sizeof(string2), "%s Vagos : {FFFFFF}%d Kills/n",string , Factiunea2);
format(string3, sizeof(string3), "%s The Mafia : {FFFFFF}%d Kills/n",string2 , Factiunea3);
format(string4, sizeof(string4), "%s Aztecas : {FFFFFF}%d Kills/n",string3 , Factiunea4);
format(string5, sizeof(string5), "%s Groove : {FFFFFF}%d Kills/n",string4 , Factiunea5);
format(string6, sizeof(string6), "%s The Triads : {FFFFFF}%d Kills/n",string5 , Factiunea6);
format(string7, sizeof(string7), "%s Final Score/n",string6 );
format(string8, sizeof(string8), "%s {FFFFFF}Score: %d {FFFFFF}- %d/n",string7 , Alianta2, Alianta1);
ShowPlayerDialog(playerid, 72, DIALOG_STYLE_MSGBOX, "LIVE SCORE",string8, "OK" , "");
}
if(WarDuty == 0)
{
SendClientMessage(playerid, COLOR_GRAD1, " Poti vedea scorul doar daca warul este pornit!");
}
}
return 1;
}
}[/pawn]
da eroare la linia cu primul string :
[pawn]new string[128];[/pawn]
3 answers to this question
Recommended Posts