Error like GetPlayerNameEx
#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


Messages In This Thread
Error like GetPlayerNameEx - by kingchandio - 11.07.2011, 10:41
Re: Error like GetPlayerNameEx - by Cameltoe - 11.07.2011, 11:08
Re: Error like GetPlayerNameEx - by kingchandio - 11.07.2011, 16:31
Re: Error like GetPlayerNameEx - by Adil - 11.07.2011, 16:36
Re: Error like GetPlayerNameEx - by kingchandio - 11.07.2011, 16:42

Forum Jump:


Users browsing this thread: 1 Guest(s)