04.04.2013, 13:40
Hey I've installed an Biz System from Los Santos City RolePlay I copied the system etc , Heres the functions ... :
And heres the errors : !
[Same Lines]
Код:
for(new idx=0; idx<MAX_DOORS; idx++) // Dynamic Doors { if(IsPlayerInRangeOfPoint(playerid, 2, DoorInfo[idx][dOX], DoorInfo[idx][dOY], DoorInfo[idx][dOZ])) { if(DoorInfo[idx][dIInt] == 83 && DoorInfo[idx][dIVW] == 8473 && BankBlock) { SendClientMessage(playerid, COLOR_GREY, "You can't enter the bank as it is being robbed at the moment."); return 1; } if(DoorInfo[idx][dCInt]) { GameTextForPlayer(playerid, "~w~Loading Objects", 3500, 3); TogglePlayerControllable(playerid, 0); SetTimerEx("EnterExitTimer", 5000, false, "i", playerid); PlayerInfo[playerid][pSpawnFreeze] = 1; } PlayerInfo[playerid][pSpawnFreeze] = 0; SetPlayerInterior(playerid, DoorInfo[idx][dIInt]); SetPlayerVirtualWorld(playerid, DoorInfo[idx][dIVW]); SetPlayerFacingAngle(playerid, DoorInfo[idx][dIA]); SetCameraBehindPlayer(playerid); SetPlayerPos(playerid, DoorInfo[idx][dIX], DoorInfo[idx][dIY], DoorInfo[idx][dIZ]); } else if(!done && IsPlayerInRangeOfPoint(playerid, 2, DoorInfo[idx][dIX], DoorInfo[idx][dIY], DoorInfo[idx][dIZ]) && GetPlayerVirtualWorld(playerid) == DoorInfo[idx][dIVW] && GetPlayerInterior(playerid) == DoorInfo[idx][dIInt]) { if(BankRobber[playerid] && BankBlock && GetPlayerInterior(playerid) == 83 && GetPlayerVirtualWorld(playerid) == 8473) { new Rob = BankRobber[playerid]-1; DisablePlayerCheckpoint(playerid); BankRobbersCount --; format(BankRobbers[Rob], MAX_PLAYER_NAME, ""); DeliverMoney[playerid] = 0; // foreach(Player, i) { if(BankRobber[i] || PlayerInfo[i][pFac] == 1) { if(Rob == 0) TextDrawHideForPlayer(i, Textdraw1); else if(Rob == 1) TextDrawHideForPlayer(i, Textdraw2); else if(Rob == 2) TextDrawHideForPlayer(i, Textdraw3); else if(Rob == 3) TextDrawHideForPlayer(i, Textdraw4); else if(Rob == 4) TextDrawHideForPlayer(i, Textdraw5); } } format(string, sizeof(string), "** %s has went out of the bank before loading money and has failed the robbery. **", RPN(playerid)); SendRobberyMessage(COLOR_LIGHTRED, string); SendCopMessage(COLOR_LIGHTRED, string); BankRobber[playerid] = 0; if(BankRobbersCount == 0) { TextDrawHideForAll(Textdraw0); TextDrawHideForAll(Textdraw1); TextDrawHideForAll(Textdraw2); TextDrawHideForAll(Textdraw3); TextDrawHideForAll(Textdraw4); TextDrawHideForAll(Textdraw5); // BankRobbery = 0; RobberyStarted = 0; format(string, sizeof(string), "** The bank robbery has ended, $%d were stolen and $%d were saved. **", TotalStolen*10000, (TotalRobbers*10000-(TotalStolen*10000))); SendClientMessageToAll(COLOR_YELLOW, string); TotalRobbers = 0; new copsonline; foreach(Player, i) { if(IsACop(i)) copsonline++; } foreach(Player, i) { if(IsACop(i)) { new Saved = (TotalRobbers*10000-(TotalStolen*10000)); GiveDodMoney(i, Saved/copsonline); format(string, sizeof(string), "** You have received your cut from the saved money. ($%d)", Saved/copsonline); SendClientMessage(i, COLOR_LIME, string); } } } return 1; } if(DoorInfo[idx][dCExt]) { GameTextForPlayer(playerid, "~w~Loading Objects", 3500, 3); TogglePlayerControllable(playerid, 0); SetTimerEx("EnterExitTimer", 5000, false, "i", playerid); PlayerInfo[playerid][pSpawnFreeze] = 1; } PlayerInfo[playerid][pSpawnFreeze] = 0; SetPlayerInterior(playerid, DoorInfo[idx][dOInt]); SetPlayerVirtualWorld(playerid, DoorInfo[idx][dOVW]); SetPlayerFacingAngle(playerid, DoorInfo[idx][dOA]); SetCameraBehindPlayer(playerid); SetPlayerPos(playerid, DoorInfo[idx][dOX], DoorInfo[idx][dOY], DoorInfo[idx][dOZ]); done = 1; return 1; } } for(new idx=1; idx<MAX_BIZ; idx++) { if(IsPlayerInRangeOfPoint(playerid, 2, BizInfo[idx][bX], BizInfo[idx][bY], BizInfo[idx][bZ])) { if(DayNoShops == 1) return SendClientMessage(playerid, COLOR_FADE3, "It's Sunday,all shops are closed! ((/day))"); if(!BizInfo[idx][bStatus] && PlayerInfo[playerid][pBiz] != idx && !PlayerInfo[playerid][pVBiz]) return SendClientMessage(playerid, COLOR_GREY, "This business is closed."); if(BizInfo[idx][bType] == 1) // 24/7 Business { SetPlayerPos(playerid, -27.3025,-57.6649,1003.5469); SetPlayerFacingAngle(playerid, 357.5915); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 6); SetPlayerVirtualWorld(playerid, idx+100); format(string, sizeof(string), "** Welcome to %s's 24/7 Market (( /prices & /buy )) **", BizInfo[idx][bOwner]); SendClientMessage(playerid, COLOR_ORANGE, string); } else if(BizInfo[idx][bType] == 2) // Clothes Shop Business { SetPlayerPos(playerid, 207.0638,-139.9965,1003.5078); SetPlayerFacingAngle(playerid, 356.3849); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 3); SetPlayerVirtualWorld(playerid, idx+100); format(string, sizeof(string), "** Welcome to %s's Clothes Shop (( /buyclothes & /buytoys )) **", BizInfo[idx][bOwner]); SendClientMessage(playerid, COLOR_ORANGE, string); } else if(BizInfo[idx][bType] == 3) // Ammunation Business { SetPlayerPos(playerid, 285.8044,-85.9956,1001.5229); SetPlayerFacingAngle(playerid, 358.9898); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 4); SetPlayerVirtualWorld(playerid, idx+100); format(string, sizeof(string), "** Welcome to %s's Ammunation (( /prices & /buy )) **", BizInfo[idx][bOwner]); SendClientMessage(playerid, COLOR_ORANGE, string); } else if(BizInfo[idx][bType] == 4) // Club Business { SetPlayerPos(playerid, 493.4252,-24.3061,1000.6797); SetPlayerFacingAngle(playerid, 0.2432); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 17); SetPlayerVirtualWorld(playerid, idx+100); format(string, sizeof(string), "** Welcome to %s's Club (( /prices & /buy )) **", BizInfo[idx][bOwner]); SendClientMessage(playerid, COLOR_ORANGE, string); } else if(BizInfo[idx][bType] == 5) // Advertisement Agency { SetPlayerPos(playerid, 834.1631,7.4883,1004.1797); SetPlayerFacingAngle(playerid, 86.7239); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 3); SetPlayerVirtualWorld(playerid, idx+100); format(string, sizeof(string), "** Welcome to %s's Advertisement Agency (( /ad )) **", BizInfo[idx][bOwner]); SendClientMessage(playerid, COLOR_ORANGE, string); } else if(BizInfo[idx][bType] == 6) // Fast Food { SetPlayerPos(playerid, 372.3830,-133.2579,1001.4922); SetPlayerFacingAngle(playerid, 0.4216); SetCameraBehindPlayer(playerid); SetPlayerInterior(playerid, 5); SetPlayerVirtualWorld(playerid, idx+100); format(string, sizeof(string), "** Welcome to %s's Fast Food (( /prices /buy )) **", BizInfo[idx][bOwner]); SendClientMessage(playerid, COLOR_ORANGE, string); } } else if(IsPlayerInRangeOfPoint(playerid, 2, -27.3025,-57.6649,1003.5469) || IsPlayerInRangeOfPoint(playerid, 2, 207.0638,-139.9965,1003.5078) || IsPlayerInRangeOfPoint(playerid, 2, 285.8044,-85.9956,1001.5229) || IsPlayerInRangeOfPoint(playerid, 2, 493.4252,-24.3061,1000.6797) || IsPlayerInRangeOfPoint(playerid, 2, 834.1631,7.4883,1004.1797) || IsPlayerInRangeOfPoint(playerid, 2, 372.3830,-133.2579,1001.4922)) // 24/7 || Clothes Shop || Ammunation || Club || Advertisement Agency || FastFood { idx = GetPlayerVirtualWorld(playerid)-100; if(!done && idx < MAX_BIZ && BizInfo[idx][bType]) { SetPlayerPos(playerid, BizInfo[idx][bX], BizInfo[idx][bY], BizInfo[idx][bZ]); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); } done = 1; return 1; } } // Business, House and Gates Checking if(PlayerInfo[playerid][pBiz] != 0 && strcmp(RPNU(playerid), BizInfo[PlayerInfo[playerid][pBiz]][bOwner]) || PlayerInfo[playerid][pBiz] != 0 && !strlen(BizInfo[PlayerInfo[playerid][pBiz]][bOwner])) { PlayerInfo[playerid][pBiz] = 0; SendClientMessage(playerid, COLOR_WHITE, " An administrator has sold your business while you were offline."); }
And heres the errors : !
[Same Lines]
Код:
:d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3517) : error 017: undefined symbol "ABroadCast" d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3595) : error 017: undefined symbol "ABroadCast" d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3621) : error 017: undefined symbol "ABroadCast" d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3642) : error 017: undefined symbol "ABroadCast" d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(3652) : error 017: undefined symbol "ABroadCast" d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(4112) : error 004: function "SendFamilyMessage" is not implemented d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(4405) : error 010: invalid function or declaration d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(4407) : error 010: invalid function or declaration d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(4409) : error 010: invalid function or declaration d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(4412) : error 010: invalid function or declaration d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(4414) : error 010: invalid function or declaration d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(4428) : error 010: invalid function or declaration d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(4430) : error 010: invalid function or declaration d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(4432) : error 001: expected token: ";", but found "-identifier-" d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(4438) : error 010: invalid function or declaration d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(4440) : error 010: invalid function or declaration d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(4442) : error 010: invalid function or declaration d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(4443) : error 010: invalid function or declaration d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(4444) : error 010: invalid function or declaration d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(4445) : error 010: invalid function or declaration d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(4446) : error 010: invalid function or declaration d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(4451) : error 010: invalid function or declaration d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(4452) : error 010: invalid function or declaration d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(4453) : error 010: invalid function or declaration d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(4462) : error 010: invalid function or declaration d:\Users\User\Desktop\SCript\gamemodes\NICRP.pwn(4467) : error 010: invalid function or declaration Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.