need help with this!
#1

Hi guys its me again.
Ive been trying to work on a score limit.
meaning, If the team got 50 kills, they whole game is gonna be freeze, a gametext will apear saying TEAM BLA BLA HAS WON THE ROUND!, and sending a rcon command to change to the new map (gmx).

Now I have this problem. I totaly suck at scripting (im about to learn it), so please maybe this script has abit problems that might be annoy other scripter, but yeah im a noob with pawn.

pawn Код:
#define WIN_POINTS 50

//news

static gTeam[MAX_PLAYERS];
new Text:Privat;
new Text:Corporal;
new Text:Sergeant;
new Text:Lieutenant;
new Text:Captain;
new Text:General;
new gPlayerLogged[MAX_PLAYERS];
new pRank[MAX_PLAYERS];
new Text:TextDrawScore;
new TextDrawTimer;
new USMCKills, SPEZNASKills;
new Text:Kill_Streak[MAX_PLAYERS];
new kills[MAX_PLAYERS];
new Kills[MAX_PLAYERS];
new Text:Textdraw0;
new st[128];
new name[24];
new Killername[24];
new Menu:WepsMenu;
new Msg;
pawn Код:
public ScoreUpdate()
{
    new scstr[100];

    for(new i=0; i<MAX_PLAYERS; ++i)
    {
        if( gTeam[i] == TEAM_USMC)
        {
            if(USMCKills >= WIN_POINTS)
            {
            SendRconCommand("gmx");
            GameTextForAll(" ~y~US Marine Corps has won! !", 3000000, 3);
            }
        } else if( gTeam[i] == TEAM_SPEZNAS)
        {
            if(SPEZNASKills >= WIN_POINTS)
            {
            SendRconCommand("gmx");
            GameTextForAll(" ~n~Speznas Units has won!", 3000000, 3);
            }
        }
    }
and im getting those errors/warnings

pawn Код:
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(132) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(132) : error 017: undefined symbol "ScoreUpdate"
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(134) : warning 204: symbol is assigned a value that is never used: "scstr"
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(134 -- 487) : warning 225: unreachable code
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(487) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(487) : error 004: function "GlobalAnnouncement" is not implemented
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(500) : warning 225: unreachable code
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(500) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(500) : error 004: function "GetTeamScores" is not implemented
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(529) : warning 225: unreachable code
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(529) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(529) : error 004: function "MapName" is not implemented
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(536) : warning 225: unreachable code
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(536) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(536) : error 004: function "OnGameModeExit" is not implemented
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(543) : warning 225: unreachable code
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(543) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(543) : error 004: function "OnPlayerRequestClass" is not implemented
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(545) : error 017: undefined symbol "playerid"
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(546) : error 017: undefined symbol "playerid"
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(547) : error 017: undefined symbol "playerid"
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(549) : error 017: undefined symbol "classid"
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(551) : error 017: undefined symbol "playerid"
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(552) : error 017: undefined symbol "playerid"
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(553) : error 017: undefined symbol "playerid"
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(555) : error 017: undefined symbol "classid"
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(557) : error 017: undefined symbol "playerid"
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(558) : error 017: undefined symbol "playerid"
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(559) : error 017: undefined symbol "playerid"
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(565) : warning 225: unreachable code
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(565) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(565) : error 004: function "OnPlayerConnect" is not implemented
C:\Users\Admin\Desktop\COD9 - Battlefield\gamemodes\BFV1.pwn(568) : error 017: undefined symbol "playerid"

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
So anyone who can correct this script? he would help me alot!

thanks

xRx out
Reply
#2

send me your msn with pm
Reply
#3

can't you correct it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)