22.06.2016, 10:45
Buna ziua, am si eu nevoie de putin ajutor.
Lucrez la un server si am parte de niste erori.. si o avertizare..
Acum pun liniile cu probleme
Restul vad ca sunt la fel cu Function is not implemented
Si nici cele de definire nu stiu ce au..
Lucrez la un server si am parte de niste erori.. si o avertizare..
Quote:
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(1517) : warning 201: redefinition of constant/macro (symbol "MAX_TRUNK_SLOTS") D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(1527) : error 025: function heading differs from prototype D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(152 ![]() D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(1532) : error 021: symbol already defined: "vehTrunkCounter" D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(1533) : error 021: symbol already defined: "vehTrunk" D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(1534) : error 021: symbol already defined: "vehTrunkAmmo" D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(1535) : error 021: symbol already defined: "vehTrunkArmour" D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(1541) : error 021: symbol already defined: "Siren" D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(4941) : error 017: undefined symbol "GiftPlayer" D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(5043) : error 004: function "ABroadCast" is not implemented D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(5336) : error 004: function "SetPlayerToTeamColor" is not implemented D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(5601) : error 004: function "SetPlayerWeapons" is not implemented D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(5662) : error 004: function "ABroadCast" is not implemented D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(5953) : error 017: undefined symbol "SaveBusiness" D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(837 ![]() D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(8406) : error 004: function "SendFamilyMessage" is not implemented D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(8477) : error 004: function "SendRadioMessage" is not implemented D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(847 ![]() D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(8479) : error 004: function "SendRadioMessage" is not implemented D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(8480) : error 004: function "SendRadioMessage" is not implemented D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(8593) : error 004: function "FixHour" is not implemented D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(8640) : error 004: function "split" is not implemented D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(8942) : error 004: function "split" is not implemented D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(9133) : error 004: function "split" is not implemented D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(10176) : error 004: function "SetPlayerWeapons" is not implemented D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(11107) : error 017: undefined symbol "SaveGarages" D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(11139) : error 017: undefined symbol "SaveGarages" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors. |
Код:
/* Trunk System */ #define MAX_TRUNK_SLOTS (5) //Only 4 //Trunk System forward SaveTrunk(); forward LoadTrunk(); forward ReduceTimer(playerid); forward IsANoTrunk(carid); forward IsARC(vehicleid); forward RemovePlayerWeapon(playerid, weaponid); forward SafeResetPlayerWeapons(plyid); forward SafeGivePlayerWeapon(plyid, weaponid, ammo); //Trunk system new vehTrunkCounter[MAX_VEHICLES] = 1; new vehTrunk[MAX_VEHICLES][MAX_TRUNK_SLOTS]; new vehTrunkAmmo[MAX_VEHICLES][MAX_TRUNK_SLOTS]; new Float:vehTrunkArmour[MAX_VEHICLES]; new ReduceTime[MAX_PLAYERS]; // ------------ // Siren new Siren[MAX_VEHICLES]; #define CAR_AMOUNT 700 //Change to Your Vehicle Amount
Код:
stock DeleteClosestBag(playerid) { for(new i = 0; i < sizeof(MoneyInfo); i++) { if(IsPlayerInRangeOfPoint(playerid, 4.0, MoneyInfo[i][mbX], MoneyInfo[i][mbY], MoneyInfo[i][mbZ])) { if(MoneyInfo[i][mCreated] == 1) { new sendername[MAX_PLAYER_NAME]; new string[128]; new location[MAX_ZONE_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayer2DZone(playerid, location, MAX_ZONE_NAME); format(string, sizeof(string), "WARNING: %s has destroyed a money bag in %s (%0.2f, %0.2f, %0.2f).", sendername, location, MoneyInfo[i][mbX], MoneyInfo[i][mbY], MoneyInfo[i][mbZ]); ABroadCast(RED, string, 1); MoneyInfo[i][mCreated]=0; MoneyInfo[i][mbX]=0.0; MoneyInfo[i][mbY]=0.0; MoneyInfo[i][mbZ]=0.0; MoneyInfo[i][mAmount] = 0; MoneyInfo[i][mMoneybag] = 0; DestroyDynamicPickup(MoneyInfo[i][mPickup]); return 1; } } } return 0; }