Error like GetPlayerNameEx
#1

Sir can you fix this whats problem in code
Errors:
pawn Код:
D:\Games\Mygm\filterscripts\vsystem.pwn(548) : error 017: undefined symbol "GetPlayerNameEx"
D:\Games\Mygm\filterscripts\vsystem.pwn(560) : error 017: undefined symbol "GetPlayerNameEx"
D:\Games\Mygm\filterscripts\vsystem.pwn(566) : error 017: undefined symbol "GetPlayerNameEx"
D:\Games\Mygm\filterscripts\vsystem.pwn(609) : error 017: undefined symbol "GetPlayerNameEx"
D:\Games\Mygm\filterscripts\vsystem.pwn(799) : error 017: undefined symbol "GetPlayerNameEx"
D:\Games\Mygm\filterscripts\vsystem.pwn(797) : warning 204: symbol is assigned a value that is never used: "name"
D:\Games\Mygm\filterscripts\vsystem.pwn(837) : error 017: undefined symbol "GetPlayerNameEx"
D:\Games\Mygm\filterscripts\vsystem.pwn(871) : error 017: undefined symbol "GetPlayerNameEx"
D:\Games\Mygm\filterscripts\vsystem.pwn(950) : error 017: undefined symbol "GetPlayerNameEx"
D:\Games\Mygm\filterscripts\vsystem.pwn(1021) : error 017: undefined symbol "GetPlayerNameEx"
D:\Games\Mygm\filterscripts\vsystem.pwn(1085) : error 017: undefined symbol "GetPlayerNameEx"
D:\Games\Mygm\filterscripts\vsystem.pwn(1117) : error 017: undefined symbol "name"
D:\Games\Mygm\filterscripts\vsystem.pwn(1125) : error 017: undefined symbol "GetPlayerNameEx"
D:\Games\Mygm\filterscripts\vsystem.pwn(1127) : error 017: undefined symbol "name"
D:\Games\Mygm\filterscripts\vsystem.pwn(1128) : error 017: undefined symbol "GetPlayerNameEx"
D:\Games\Mygm\filterscripts\vsystem.pwn(1471) : error 017: undefined symbol "GetPlayerNameEx"
D:\Games\Mygm\filterscripts\vsystem.pwn(1678) : error 017: undefined symbol "GetPlayerNameEx"
D:\Games\Mygm\filterscripts\vsystem.pwn(1690) : error 017: undefined symbol "GetPlayerNameEx"
D:\Games\Mygm\filterscripts\vsystem.pwn(1707) : error 017: undefined symbol "GetPlayerNameEx"
D:\Games\Mygm\filterscripts\vsystem.pwn(1724) : error 017: undefined symbol "GetPlayerNameEx"
D:\Games\Mygm\filterscripts\vsystem.pwn(1741) : error 017: undefined symbol "GetPlayerNameEx"
D:\Games\Mygm\filterscripts\vsystem.pwn(1758) : error 017: undefined symbol "GetPlayerNameEx"
D:\Games\Mygm\filterscripts\vsystem.pwn(1941) : error 017: undefined symbol "PlayerName"
D:\Games\Mygm\filterscripts\vsystem.pwn(1943) : error 017: undefined symbol "GetPlayerNameEx"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

23 Errors.
Line 548:
pawn Код:
format(path, 35, "Cars/%s.cfg", GetPlayerNameEx(playerid));
Line 797:

pawn Код:
new name[24];
        new id = GetPlayerVehicleID(playerid);
        if(!strcmp(GetPlayerNameEx(playerid), CarInfo[id][oOwner]))
        {
            if(CarInfo[id][oLock] == 0)
            {
                SendClientMessage(playerid, 0xFF804096, "You have locked your car's doors.");
                CarInfo[id][oLock] = 1;
                SaveOwnableCar(id); // It doesn't save, if i don't do it 2 times.. wtf?
                SaveOwnableCar(id);
                return true;
            }
Line 1117:

pawn Код:
if(!strcmp(name, CarInfo[vid][oOwner]))
Line 1941:

pawn Код:
if(strcmp(PlayerName,CarInfo[VehID][oOwner]))
        {
            format(string, sizeof(string), "This car is owned by %s", GetPlayerNameEx(playerid));
            SendClientMessage(playerid,0xFFFFFFFF,string);
        }
    }
    return 1;
Reply
#2

Add :

pawn Код:
stock GetPlayerNameEx(playerid)
{
     new pName[25];
     GetPlayerName(playerid, pName, sizeof(pName));
     return pName;
}
To your gamemode, And change every "D:\Games\Mygm\filterscripts\vsystem.pwn(1117) : error 017: undefined symbol 'name' "

to GetPlayerNameEx Like this :

pawn Код:
if(!strcmp(name, CarInfo[vid][oOwner]))
pawn Код:
if(!strcmp(GetPlayerNameEx(playerid), CarInfo[vid][oOwner]))
Reply
#3

pawn Код:
D:\Games\Mygm\filterscripts\vsystem.pwn(803) : warning 204: symbol is assigned a value that is never used: "name"
D:\Games\Mygm\filterscripts\vsystem.pwn(1133) : error 017: undefined symbol "name"
D:\Games\Mygm\filterscripts\vsystem.pwn(1947) : error 017: undefined symbol "PlayerName"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Error Line 803 :
pawn Код:
new name[24];
        new id = GetPlayerVehicleID(playerid);
        if(!strcmp(GetPlayerNameEx(playerid), CarInfo[id][oOwner]))
        {
            if(CarInfo[id][oLock] == 0)
            {
                SendClientMessage(playerid, 0xFF804096, "You have locked your car's doors.");
                CarInfo[id][oLock] = 1;
                SaveOwnableCar(id); // It doesn't save, if i don't do it 2 times.. wtf?
                SaveOwnableCar(id);
                return true;
Error Line 1133 :
pawn Код:
GetPlayerName(id, name, 24);
Error Line 1947 :
pawn Код:
if(strcmp(PlayerName,CarInfo[VehID][oOwner]))
        {
            format(string, sizeof(string), "This car is owned by %s", GetPlayerNameEx(playerid));
            SendClientMessage(playerid,0xFFFFFFFF,string);
        }
    }
    return 1;
Reply
#4

pawn Код:
GetPlayerName(id, name, sizeof(name));
Can't understand what you are trying to do in the last error.
Reply
#5

Well i want to do
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)