what's wrong? [Undefined symbole "playerid"?]
#1

Hi , i have Map change system , so whene i complie my script it says :
Код:
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\WAR.pwn(113) : warning 202: number of arguments does not match definition
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\WAR.pwn(528) : error 017: undefined symbol "playerid"
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\WAR.pwn(529) : error 017: undefined symbol "playerid"
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\WAR.pwn(530) : error 017: undefined symbol "playerid"
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\WAR.pwn(531) : error 017: undefined symbol "playerid"
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\WAR.pwn(532) : error 017: undefined symbol "playerid"
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\WAR.pwn(533) : error 017: undefined symbol "playerid"
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\WAR.pwn(537) : error 017: undefined symbol "playerid"
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\WAR.pwn(538) : error 017: undefined symbol "playerid"
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\WAR.pwn(539) : error 017: undefined symbol "playerid"
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\WAR.pwn(540) : error 017: undefined symbol "playerid"
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\WAR.pwn(541) : error 017: undefined symbol "playerid"
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\WAR.pwn(542) : error 017: undefined symbol "playerid"
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\WAR.pwn(1099) : warning 217: loose indentation
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\WAR.pwn(1566) : warning 203: symbol is never used: "params"
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\WAR.pwn(1566 -- 1581) : warning 203: symbol is never used: "PlayerKills"
C:\DOCUME~1\PC\Bureau\cs\GAMEMO~1\WAR.pwn(1566 -- 1581) : warning 203: symbol is never used: "Zabil"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


12 Errors.
the errors line :
pawn Код:
forward NextMap();
public NextMap() {
    if(Cmaps > 1) Cmaps = 0;
    switch(Cmaps) {
        case 0: {
            if(gTeam[playerid] == TEAM_CT) {
                SetPlayerPos(playerid,2533.8667,2753.3320,10.8203);
                SetPlayerFacingAngle(playerid,90.5278);
            } else if(gTeam[playerid] == TEAM_T) {
                SetPlayerPos(playerid,2667.8340,2717.2986,10.8203);
                SetPlayerFacingAngle(playerid,31.6018);
            }
            CurrentMap = 0;
        } case 1: {
            if(gTeam[playerid] == TEAM_CT) {
                SetPlayerPos(playerid,1801.1047,-2991.1992,6.1988);
                SetPlayerFacingAngle(playerid,183.9618);
            } else if(gTeam[playerid] == TEAM_T) {
                SetPlayerPos(playerid,1846.0448,-3083.0525,6.6550);
                SetPlayerFacingAngle(playerid,44.1783);
            }
            CurrentMap = 1;
        }
    }
    Cmaps++;
}
i hope you help me to fix those errors
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)