28.10.2009, 17:06
Ok...
Here is the error:
And here is the script:
This may be because I am missing a "return 1;", could someone tell me where to put the "return 1;"
If you can help me solve this, I will be very thankful!
Thnks
Here is the error:
Код:
(1057) : error 054: unmatched closing brace ("}")
pawn Код:
if(PlayerKills[killerid] == 45)
{
SendClientMessage(playerid, COLOR_YELLOW,"You have gotten 45 kills! You can use /weaps to get all the weapons!");
new PlayerName[MAX_PLAYER_NAME],
string[128];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "[Spree]%s has gotten 45 kills and has now unlocked all weapons!", PlayerName);
SendClientMessageToAll(COLOR_YELLOW, string);
GivePlayerMoney(playerid,1000);
PlayerKills[playerid] = 0; //Set the murdered's kill count to 0
PlayerKills[killerid]++; //Set the killer's kill count +1
}
}
}
} //Line 1057
}
If you can help me solve this, I will be very thankful!

Thnks