for(new h = carsonserver; h < sizeof(CarInfo); h++) |
C:\Users\Cbu-Samp\Desktop\CarOwnerShip!!!\filterscripts\carowne rship.pwn(282) : error 017: undefined symbol "CarInfo" C:\Users\Cbu-Samp\Desktop\CarOwnerShip!!!\filterscripts\carowne rship.pwn(282) : error 036: empty statement C:\Users\Cbu-Samp\Desktop\CarOwnerShip!!!\filterscripts\carowne rship.pwn(282) : error 017: undefined symbol "h" C:\Users\Cbu-Samp\Desktop\CarOwnerShip!!!\filterscripts\carowne rship.pwn(282) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
enum cInfo { cModel, Float:cLocationx, Float:cLocationy, Float:cLocationz, Float:cAngle, cColorOne, cColorTwo, cOwner[MAX_PLAYER_NAME], cDescription[12], cOwned, cLock, }; |
if(GetPlayerMoney(playerid) >= CarInfo[idcar][cValue]) { if(PlayerInfo[playerid][pPcarkey] == -1) { PlayerInfo[playerid][pPcarkey] = idcar; } else if(PlayerInfo[playerid][pPcarkey2] == -1) { PlayerInfo[playerid][pPcarkey2] = idcar; } else if(PlayerInfo[playerid][pPcarkey3] == -1) { PlayerInfo[playerid][pPcarkey3] = idcar; } else { return 1; } CarInfo[idcar][cOwned] = 1; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(CarInfo[idcar][cOwner], sendername, 0, strlen(sendername), 999); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); GameTextForPlayer(playerid, "~w~Felicitari~n~Nu uita sa o parchezi cu /v park!", 5000, 3); SendClientMessage(playerid, COLOR_GRAD2, "Felicitari ti-ai cumparat o masina noua!"); TogglePlayerControllable(playerid, 1); OnPropUpdate(); SavePlayerData(playerid); return 1; } |
enum cInfo
{
cModel,
Float:cLocationx,
Float:cLocationy,
Float:cLocationz,
Float:cAngle,
cColorOne,
cColorTwo,
cOwner[MAX_PLAYER_NAME],
cDescription[12],
cOwned,
cLock
};
new CarInfo[MAX_VEHICLES][cInfo];