- 0
o eroare rara :)error 003: declaration of a....
-
Similar Content
-
- 2 replies
- 1,374 views
-
- 0 replies
- 99 views
-
- 2 answers
- 237 views
-
- 0 answers
- 92 views
-
- 1 reply
- 749 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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]
Link to comment
Share on other sites
3 answers to this question
Recommended Posts