11 Warnings
#1

How would i go about fixing these and are any of them serious?


Quote:

C:\Users\Cody's\Desktop\New folder\pawno\include\cnr/cnr_textdraws.inc(226) : warning 217: loose indentation
C:\Users\Cody's\Desktop\New folder\pawno\include\cnr/cnr_textdraws.inc(227) : warning 217: loose indentation
C:\Users\Cody's\Desktop\New folder\pawno\include\cnr/cnr_houses.inc(703) : warning 217: loose indentation
C:\Users\Cody's\Desktop\New folder\pawno\include\cnr/cnr_policecommands.inc(327) : warning 217: loose indentation
C:\Users\Cody's\Desktop\New folder\pawno\include\cnr/cnr_commands.inc(1709) : warning 217: loose indentation
C:\Users\Cody's\Desktop\New folder\pawno\include\cnr/cnr_commands.inc(1710) : warning 217: loose indentation
C:\Users\Cody's\Desktop\New folder\gamemodes\CnR.pwn(285) : warning 235: public function lacks forward declaration (symbol "OnPlayerFloodControl")
C:\Users\Cody's\Desktop\New folder\gamemodes\CnR.pwn(3033) : warning 209: function "Streamer_OnPlayerEnterCP" should return a value
C:\Users\Cody's\Desktop\New folder\gamemodes\CnR.pwn(3449) : warning 203: symbol is never used: "DMGate"
C:\Users\Cody's\Desktop\New folder\gamemodes\CnR.pwn(3449) : warning 203: symbol is never used: "at"
C:\Users\Cody's\Desktop\New folder\gamemodes\CnR.pwn(3449) : warning 203: symbol is never used: "pFPS"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


11 Warnings.

Reply
#2

Post the code please
Reply
#3

as in the lines its talking about?
Reply
#4

Yeah
Reply
#5

226| AddPlayerClass(109, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 24 = Civilian
227| AddPlayerClass(110, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 25 = Civilian
703| }
327| PlayerTextDrawSetString(playerid, playerData[playerid][classSelect][3], "Cruise around San Fierro .");
1709| {
1710| format(randomDeath, sizeof(randomDeath), "unleashed the pain on");
285| public OnPlayerFloodControl(playerid, iCount, iTimeSpan) {
3033| }
as far as 3499 there is no line 3449
Reply
#6

Post all the lines before 226 too
Reply
#7

Quote:

#include <a_samp>
#include <a_sampdb>
#include <mysql>
#include <a_http>
#include <required/crashdetect>
#include <required/streamer>
#include <progress>
#include <required/zcmd>
#include <required/sscanf2>
#include <required/explode>
#include <required/fuckCleo>
#include <required/SII>
#include <required/formatex>
#include <required/uf>
#include <required/fixes>
#include <required/acuf>
#include <required/OPA>
#include <required/dldialog>
#include <required/anti_flood>

#include <cnr/cnr_defines>
#include <cnr/cnr_mysqlFunctions>
#include <required/cnr_mysqlresponse>
#include <cnr/cnr_robberyCheckpoints>
#include <cnr/cnr_anticheat>
#include <cnr/cnr_dynamiccps>
#include <cnr/cnr_textdraws>
#include <cnr/cnr_zones>
#include <cnr/cnr_functions>
#include <cnr/cnr_houses>
#include <cnr/cnr_admincommands>
#include <cnr/cnr_policecommands>
#include <cnr/cnr_commands>
#include <cnr/cnr_jail>
#include <cnr/cnr_businesses>
#include <cnr/cnr_animations>
#include <cnr/cnr_courier>
#include <cnr/cnr_courier>
#include <cnr/cnr_gangs>
#include <cnr/cnr_trucking>
#include <cnr/cnr_newMissions>
#include <cnr/cnr_toys>
#include <cnr/cnr_vehicles>
#include <cnr/cnr_dealership>
#include <cnr/vehicle_system>
#include <cnr/cnr_dialogresponse>
#include <cnr/cnr_explosives>
#include <cnr/cnr_moneybag>
#include <cnr/cnr_roadblocks>
#include <cnr/cnr_gates>
#include <cnr/cnr_factionzones>
#include <cnr/cnr_dmevent>
#include <cnr/cnr_medic>
#include <cnr/cnr_glassevent>
#include <cnr/cnr_profiles>
#include <cnr/cnr_vehicleAC>

main()
{
print("\n-----------------------------------");
print("CNRSF (v2.17) PinEvil Loaded");
print("------------------------------------\n");
}

public OnGameModeInit()
{

profileStuff();
connection = mysql_init(LOG_ONLY_ERRORS, 1);

mysql_connect("", "", "", "", connection, 1);

// Databases
//VEHICLEDB = db_open("dbs/Vehicles.db");
HOUSEDB = db_open("dbs/Houses.db");
GATESDB = db_open("dbs/Gates.db");
VEHICLESDB = db_open("dbs/newvehicles.db");

SetGameModeText("Cops and Robbers");
SendRconCommand("mapname San Fierro");

// Skydive Pickup
pickup_chute = CreatePickup(371, 1, -1813.0156, 576.6133, 234.8906, 0);

// Secret Service Pickup
pickup_ss = CreatePickup(371, 1, -1737.6863, 787.3431, 167.6535, 0);

// VIP Health Pickup (for all VIPs)
pickup_vhealth = CreatePickup(1240, 1, 1208.5283, -6.4214, 1001.3281, 80);

// VIP Armour Pickup (for crim/top VIPs)
pickup_varmour = CreatePickup(1242, 1, 1217.9944, -6.6420, 1001.3281, 80);

// Stop stunt rewards
EnableStuntBonusForAll(0);

// Use standard CJ anims
UsePlayerPedAnims();

// Disable the default interior yellow markers for enter/exit
DisableInteriorEnterExits();

// Place robbery checkpoints all around the map
placeAllCheckpoints();

// Place the class vehicles all around the map
placeAllClassCars();
placeExtraCars();

// Add the custom objects
addWorldObjects();

// Textdraws
buildTextDraws();

// Houses
load_houses();

// Gates
load_gates();

// Businesses
//load_businesses();

// Vehicles
//load_oVehicles();
Load_Vehicles();

// Zones
load_zones();

// Flush gangs
flushGangs();

// Flush explosives
flushExplosiveData();

// Set server weather
SetWeather(4);

// Timers
SetTimer("countMuteTime", 1000, true);
SetTimer("countRobTime", 1000, true);
SetTimer("highPing", 2000, true);
SetTimer("armourCheck", 5000, true); // also caters for DM arena checks
SetTimer("checkJetpack", 2000, true);
SetTimer("gameTip", 600000, true);
SetTimer("vipCheck", 300000, true);
SetTimer("Zones_Update", 1000, true);
SetTimer("classCheck", 10000, true);
SetTimer("autoMoneyBag", 1200000, true);
SetTimer("swapMOTD", 300000, true);

for(new i = 0; i < MAX_PLAYERS; i++)
{
Zones[i] = TextDrawCreate(86.000000, 320.000000, "_");
TextDrawBackgroundColor(Zones[i], 255);
TextDrawFont(Zones[i], 1);
TextDrawLetterSize(Zones[i], 0.300000, 1.200000);
TextDrawColor(Zones[i], -1);
TextDrawSetOutline(Zones[i], 0);
TextDrawSetProportional(Zones[i], 1);
TextDrawSetShadow(Zones[i], 1);
TextDrawUseBox(Zones[i], 0);
TextDrawAlignment(Zones[i], 2);
}

alog[1] = " ";
alog[2] = " ";
alog[3] = " ";
alog[4] = " ";
alog[5] = " ";

new
motd1[128] = "~y~Welcome to .:WCAR:.",
motd2[128] = "~y~If you need help use /ask!",
motd3[128] = "~y~Want benefits and much more? check out ~g~/vipfeatures!"
;

serverInfo[MOTD1] = motd1;
serverInfo[MOTD2] = motd2;
serverInfo[MOTD3] = motd3;

serverInfo[enableMOTD] = true;
SetTimer("swapMOTD", 10000, false);

drawGamemodeInitTextdraws();

serverInfo[maxPing] = 1024;
serverInfo[kickWarp] = 1;
N11 = 11 * 60;
gtime = N11 + 59;

serverInfo[jailblown] = 0;
serverInfo[moneybagid] = 1;
serverInfo[rfAnticheat] = 1;
serverInfo[abAnticheat] = 0;
serverInfo[carAnticheat] = 1;
serverInfo[cbAnticheat] = 0; // ANTICBUG DISABLED IF THIS IS SET TO 0

// Set up several player classes
AddPlayerClass(25, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 0 = Civilian
AddPlayerClass(124, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 1 = Civilian
AddPlayerClass(190, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 2 = Civilian
AddPlayerClass(191, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 3 = Civilian
AddPlayerClass(185, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 4 = Civilian
AddPlayerClass(13, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 5 = Civilian
AddPlayerClass(18, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 6 = Civilian
AddPlayerClass(45, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 7 = Civilian
AddPlayerClass(66, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 8 = Civilian
AddPlayerClass(106, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 9 = Civilian
AddPlayerClass(242, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 10 = Civilian
AddPlayerClass(261, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 11 = Civilian
AddPlayerClass(271, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 12 = Civilian
AddPlayerClass(293, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 13 = Civilian
AddPlayerClass(296, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 14 = Civilian
AddPlayerClass(12, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 15 = Civilian
AddPlayerClass(13, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 16 = Civilian
AddPlayerClass(31, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 17 = Civilian
AddPlayerClass(41, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 18 = Civilian
AddPlayerClass(92, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 19 = Civilian
AddPlayerClass(105, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 20 = Civilian
AddPlayerClass(106, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 21 = Civilian
AddPlayerClass(107, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 22 = Civilian
AddPlayerClass(108, -1505.5410, 920.3940, 7.1875, 90, 0, 0, 0, 0, 0, 0); // Class ID 23 = Civilian

1-225 and where do i add my database stuff at lol?
Reply
#8

paste this
pawn Код:
forward OnPlayerFloodControl(playerid, iCount, iTimeSpan);
just before this
pawn Код:
public OnPlayerFloodControl(playerid, iCount, iTimeSpan)
Reply
#9

send the function which has this error

Код:
C:\Users\Cody's\Desktop\New folder\gamemodes\CnR.pwn(285) : warning 235: public function lacks forward declaration (symbol "OnPlayerFloodControl")
Reply
#10

ok now were at

Quote:

C:\Users\Cody's\Desktop\New folder\pawno\include\cnr/cnr_textdraws.inc(226) : warning 217: loose indentation
C:\Users\Cody's\Desktop\New folder\pawno\include\cnr/cnr_textdraws.inc(227) : warning 217: loose indentation
C:\Users\Cody's\Desktop\New folder\pawno\include\cnr/cnr_houses.inc(703) : warning 217: loose indentation
C:\Users\Cody's\Desktop\New folder\pawno\include\cnr/cnr_policecommands.inc(327) : warning 217: loose indentation
C:\Users\Cody's\Desktop\New folder\pawno\include\cnr/cnr_commands.inc(1709) : warning 217: loose indentation
C:\Users\Cody's\Desktop\New folder\pawno\include\cnr/cnr_commands.inc(1710) : warning 217: loose indentation
C:\Users\Cody's\Desktop\New folder\gamemodes\CnR.pwn(3033) : warning 209: function "Streamer_OnPlayerEnterCP" should return a value
C:\Users\Cody's\Desktop\New folder\gamemodes\CnR.pwn(3448) : warning 203: symbol is never used: "DMGate"
C:\Users\Cody's\Desktop\New folder\gamemodes\CnR.pwn(3448) : warning 203: symbol is never used: "at"
C:\Users\Cody's\Desktop\New folder\gamemodes\CnR.pwn(3448) : warning 203: symbol is never used: "pFPS"

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)