Erori la compilare
#1

Buna ziua, am si eu nevoie de putin ajutor.

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 : error 025: function heading differs from prototype
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 : error 004: function "SendFamilyMessage" is not implemented
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 : error 004: function "SendRadioMessage" is not implemented
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.

Acum pun liniile cu probleme

Код:
/* 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
Restul vad ca sunt la fel cu Function is not implemented
Код:
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;
}
Si nici cele de definire nu stiu ce au..
Reply
#2

Undeva nu ai inchis o acolada.
Reply
#3

Quote:

function heading differs from prototype

Ai un parametru lipsa sa unul in plus la una din instructiuni

Quote:

symbol already defined: "vehTrunkCounter"
symbol already defined: "vehTrunk"
symbol already defined: "vehTrunkAmmo"
symbol already defined: "vehTrunkArmour"

Ai definit termenii astia de doua ori.

Quote:

undefined symbol "SaveGarages"

nu ai definit termenul asta deloc.

Quote:

function "split" is not implemented
function "SendRadioMessage" is not implemented
function "FixHour" is not implemented

Nu ai construit functiile cum trebuie. Ai grija la forwarduri.

Quote:

redefinition of constant/macro (symbol "MAX_TRUNK_SLOTS")

L-ai definit dar nu i-ai dat nici o valoare sau expresie cu care sa fie echivalent.
Reply
#4

@HeLiOn_PrImE, nu ma poti ajuta pe skype? nu ma prea descurc
Reply
#5

Din pacate nu te pot ajuta.
Am raspuns in putinul timp liber pe care il am pe parcursul zilei.
In rest eu sunt activ doar noaptea, pentru ca asa lucrez.

Ti-am explicat ce nu e in regula cu acele linii.
Daca nici asa nu stii rezolva, ar trebui sa mai astepti sa faci ceva experienta in programarea cu limbajul C.
Reply
#6

Pune-te si cauta unde ai uitat sa deschizi sau sa inchizi o acolada.
Reply
#7

Zici ca una singura imi da toate erorile alea?

Problema e ca am incercat sa definesc unele si am primit astea:
Quote:

D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(6203) : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(6207) : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(6292) : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(6296) : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(6381) : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(6385) : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(6470) : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(6474) : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(6559) : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(6563) : warning 215: expression has no effect

Reply
#8

Bun, am cam rezolvat majoritatea, mai am doar:
Quote:

D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(4951) : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(5963) : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(6206) : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(6210) : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(6295) : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(6299) : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(6384) : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(638 : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(6473) : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(6477) : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(6562) : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(6566) : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(838 : error 004: function "SendFamilyMessage" is not implemented
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(8392) : error 004: function "ClearContract" is not implemented
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(8416) : error 004: function "SendFamilyMessage" is not implemented
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(8420) : error 004: function "ClearContract" is not implemented
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(8487) : error 004: function "SendRadioMessage" is not implemented
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(848 : error 004: function "SendRadioMessage" is not implemented
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(8489) : error 004: function "SendRadioMessage" is not implemented
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(8490) : error 004: function "SendRadioMessage" is not implemented
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(8603) : error 004: function "FixHour" is not implemented
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(8650) : error 004: function "split" is not implemented
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(8952) : error 004: function "split" is not implemented
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(9143) : error 004: function "split" is not implemented
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(10186) : error 017: undefined symbol "i"
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(11085) : error 003: declaration of a local variable must appear in a compound block
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(11085) : error 017: undefined symbol "string"
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(11085) : warning 215: expression has no effect
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(11085) : error 001: expected token: ";", but found "]"
D:\server\altele\CGRP\gamemodes\CG-RP1.pwn(11085) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


17 Errors.

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)