Another error...
#1

Please help me for with error:
pawn Код:
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2158) : error 004: function "SetPlayerToTeamColor" is not implemented
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2158) : warning 215: expression has no effect
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2158) : error 001: expected token: ";", but found ")"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2158) : error 029: invalid expression, assumed zero
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2158) : fatal error 107: too many error messages on one line

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


4 Errors.
Linies: 2148-2192
pawn Код:
if(Spectate[i] == 253)
            {
                TogglePlayerControllable(i, 1);
                TogglePlayerSpectating(i, 0);
                SetPlayerInterior(i,Unspec[i][sPint]);
                PlayerInfo[i][pInt] = Unspec[i][sPint];
                PlayerInfo[i][pLocal] = Unspec[i][sLocal];
                Unspec[i][sLocal] = 255;
                SetSpawnInfo(i, PlayerInfo[i][pTeam], PlayerInfo[i][pModel], Unspec[i][sPx],  Unspec[i][sPy], Unspec[i][sPz]-1.0, 1.0, -1, -1, -1, -1, -1, -1);
                gTeam[i] = PlayerInfo[i][pTeam];
                SetPlayerToTeamColor(%i);
                MedicBill[i] = 0;
                if(PlayerInfo[i][pDonateRank] > 0)
                {
                    SetSpawnInfo(i, PlayerInfo[i][pTeam], PlayerInfo[i][pModel], Unspec[i][Coords][0], Unspec[i][Coords][1], Unspec[i][Coords][2], 10.0, -1, -1, -1, -1, -1, -1);
                    SpawnPlayer(i);
                    SetCameraBehindPlayer(i);
                }
                else
                {
                    SpawnPlayer(i);
                }
                Spectate[i] = 255;
            }
            if(Spectate[i] == 254)
            {
                TogglePlayerControllable(i, 1);
                SetPlayerInterior(i,Unspec[i][sPint]);
                PlayerInfo[i][pInt] = Unspec[i][sPint];
                PlayerInfo[i][pLocal] = Unspec[i][sLocal];
                SetPlayerPos(i, Unspec[i][sPx],  Unspec[i][sPy], Unspec[i][sPz]);
                Spectate[i] = 255;
            }
            if(Spectate[i] == 256)
            {
                SetPlayerToTeamColor(%i);
                Spectate[i] = 255;
            }
            if(Spectate[i] == 257)
            {
                Spectate[i] = 254;
            }
        }
    }
}
Reply
#2

Try this:

pawn Код:
if(Spectate[i] == 253)
            {
                TogglePlayerControllable(i, 1);
                TogglePlayerSpectating(i, 0);
                SetPlayerInterior(i,Unspec[i][sPint]);
                PlayerInfo[i][pInt] = Unspec[i][sPint];
                PlayerInfo[i][pLocal] = Unspec[i][sLocal];
                Unspec[i][sLocal] = 255;
                SetSpawnInfo(i, PlayerInfo[i][pTeam], PlayerInfo[i][pModel], Unspec[i][sPx],  Unspec[i][sPy], Unspec[i][sPz]-1.0, 1.0, -1, -1, -1, -1, -1, -1);
                gTeam[i] = PlayerInfo[i][pTeam];
                                SetPlayerToTeamColor(0xFFFFFFFF);
                                MedicBill[i] = 0;
                if(PlayerInfo[i][pDonateRank] > 0)
                {
                    SetSpawnInfo(i, PlayerInfo[i][pTeam], PlayerInfo[i][pModel], Unspec[i][Coords][0], Unspec[i][Coords][1], Unspec[i][Coords][2], 10.0, -1, -1, -1, -1, -1, -1);
                    SpawnPlayer(i);
                    SetCameraBehindPlayer(i);
                }
                else
                {
                    SpawnPlayer(i);
                }
                Spectate[i] = 255;
            }
            if(Spectate[i] == 254)
            {
                TogglePlayerControllable(i, 1);
                SetPlayerInterior(i,Unspec[i][sPint]);
                PlayerInfo[i][pInt] = Unspec[i][sPint];
                PlayerInfo[i][pLocal] = Unspec[i][sLocal];
                SetPlayerPos(i, Unspec[i][sPx],  Unspec[i][sPy], Unspec[i][sPz]);
                Spectate[i] = 255;
            }
            if(Spectate[i] == 256)
            {
                SetPlayerToTeamColor(%i);
                Spectate[i] = 255;
            }
            if(Spectate[i] == 257)
            {
                Spectate[i] = 254;
            }
        }
    }
}
Reply
#3

by removing this I guess it would fix the problem
" SetPlayerToTeamColor(%i); " coz its an unimplemented function
Reply
#4

Quote:
Originally Posted by SomebodyAndMe
Посмотреть сообщение
Try this:

pawn Код:
if(Spectate[i] == 253)
            {
                TogglePlayerControllable(i, 1);
                TogglePlayerSpectating(i, 0);
                SetPlayerInterior(i,Unspec[i][sPint]);
                PlayerInfo[i][pInt] = Unspec[i][sPint];
                PlayerInfo[i][pLocal] = Unspec[i][sLocal];
                Unspec[i][sLocal] = 255;
                SetSpawnInfo(i, PlayerInfo[i][pTeam], PlayerInfo[i][pModel], Unspec[i][sPx],  Unspec[i][sPy], Unspec[i][sPz]-1.0, 1.0, -1, -1, -1, -1, -1, -1);
                gTeam[i] = PlayerInfo[i][pTeam];
                                SetPlayerToTeamColor(%i));
                                MedicBill[i] = 0;
                if(PlayerInfo[i][pDonateRank] > 0)
                {
                    SetSpawnInfo(i, PlayerInfo[i][pTeam], PlayerInfo[i][pModel], Unspec[i][Coords][0], Unspec[i][Coords][1], Unspec[i][Coords][2], 10.0, -1, -1, -1, -1, -1, -1);
                    SpawnPlayer(i);
                    SetCameraBehindPlayer(i);
                }
                else
                {
                    SpawnPlayer(i);
                }
                Spectate[i] = 255;
            }
            if(Spectate[i] == 254)
            {
                TogglePlayerControllable(i, 1);
                SetPlayerInterior(i,Unspec[i][sPint]);
                PlayerInfo[i][pInt] = Unspec[i][sPint];
                PlayerInfo[i][pLocal] = Unspec[i][sLocal];
                SetPlayerPos(i, Unspec[i][sPx],  Unspec[i][sPy], Unspec[i][sPz]);
                Spectate[i] = 255;
            }
            if(Spectate[i] == 256)
            {
                SetPlayerToTeamColor(%i);
                Spectate[i] = 255;
            }
            if(Spectate[i] == 257)
            {
                Spectate[i] = 254;
            }
        }
    }
}
Idem:
pawn Код:
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2158) : error 004: function "SetPlayerToTeamColor" is not implemented
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2158) : warning 215: expression has no effect
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2158) : error 001: expected token: ";", but found ")"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2158) : error 029: invalid expression, assumed zero
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2158) : fatal error 107: too many error messages on one line

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


4 Errors.
Reply
#5

1. Remove the percentage sign
2. Is the function itself implemented somewhere in your script?
Reply
#6

Quote:
Originally Posted by Alberto_DR
Посмотреть сообщение
by removing this I guess it would fix the problem
" SetPlayerToTeamColor(%i); " coz its an unimplemented function
I deleted
pawn Код:
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2293) : error 004: function "PlayerToPoint" is not implemented
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2297) : warning 209: function "IsAtDealership" should return a value
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2298) : error 010: invalid function or declaration
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2305) : error 004: function "PlayerToPoint" is not implemented
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2309) : error 004: function "PlayerToPoint" is not implemented
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2312) : warning 209: function "IsAtClothShop" should return a value
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2313) : error 054: unmatched closing brace ("}")
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2314) : error 010: invalid function or declaration
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2321) : error 004: function "PlayerToPoint" is not implemented
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2325) : error 004: function "PlayerToPoint" is not implemented
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2328) : warning 209: function "IsAtGasStation" should return a value
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2329) : error 010: invalid function or declaration
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2331) : error 010: invalid function or declaration
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2333) : error 010: invalid function or declaration
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2335) : error 010: invalid function or declaration
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2337) : error 010: invalid function or declaration
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2339) : error 010: invalid function or declaration
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2341) : error 010: invalid function or declaration
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2343) : error 010: invalid function or declaration
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2345) : error 010: invalid function or declaration
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2347) : error 010: invalid function or declaration
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2350) : error 010: invalid function or declaration
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2357) : error 004: function "PlayerToPoint" is not implemented
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2361) : error 004: function "PlayerToPoint" is not implemented
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2364) : warning 209: function "IsAtFishPlace" should return a value
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2365) : error 010: invalid function or declaration
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2367) : error 010: invalid function or declaration
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2369) : error 010: invalid function or declaration
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2371) : error 010: invalid function or declaration
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2373) : error 010: invalid function or declaration

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


26 Errors.
Reply
#7

Quote:
Originally Posted by AndreT
Посмотреть сообщение
1. Remove the percentage sign
2. Is the function itself implemented somewhere in your script?
1.I deleted
2.yes
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)