11.07.2011, 16:31
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.
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;
pawn Код:
GetPlayerName(id, name, 24);
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;