OnGameModeInit compile error
#1

Hello there, i am doing a small update for my sever and after doing some gamemode changes i ran on this bug when trying to compile it:

C:\Users\Administrator\Desktop\Versions\samp versions\LIVE\gamemodes\update.pwn(459) : warning 204: symbol is assigned a value that is never used: "enable"

Код:
public OnGameModeInit()
{

	SendRconCommand("password CHANGETHISFORSECURITYREASONS");
    MapAndreas_Init(MAP_ANDREAS_MODE_FULL);
	zones[0] = CreateDynamicCircle(zones_points_0[0], zones_points_0[1], zones_points_0[2]);
    SendRconCommand("mapname San Andreas");
	ServerTextdraw();
	CreateDynamic3DTextLabel("SPAWN FIX: {FFFFFF}PRESS LMB", COLOR_YELLOW, 1958.7336,1342.4657,15.3746,15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, 0, 0, -1);
    CreatePickup(1318,1,1554.9025,-1675.5051,16.1953);
    CreatePickup(1318,1,2332.9895,-1069.5872,11.6794);
    CreatePickup(1318,1,2337.0386,2459.0793,14.9742);
    CreatePickup(1318,1,1294.7452, -48.8186, 1492.7);
    CreateDynamic3DTextLabel("BLACK MARKET: {FFFFFF}/buyitem", COLOR_YELLOW,1159.0352,-2044.0530,69.0078,15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, 0, 0, -1);
	CreatePickup(1318,1,1159.0352,-2044.0530,69.0078);
	CreateDynamic3DTextLabel("VIP LOUNGE: {FFFFFF}PRESS N", COLOR_YELLOW, 1574.4783,-1339.9746,16.4844,15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, 0, 0, -1);
	CreateDynamic3DTextLabel("VIP LOUNGE: {FFFFFF}PRESS N", COLOR_YELLOW, 277.3174,1852.0159,994.2360,15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, 0, 0, -1);
	CreatePickup(1318,1,1574.4783,-1339.9746,16.4844);
	CreatePickup(1318,1,277.3174,1852.0159,994.2360);
    enable = true;   <<<<<<<<<<<<< ROW 459 where the ERROR shows


    mysql_log(LOG_ERROR|LOG_WARNING);
    db = mysql_connect(mysql_host, mysql_user, mysql_database, mysql_password);
    if(mysql_errno(db))
    {
        print(">> Connection to database failed <\n>> Exiting GameMode");
        return SendRconCommand("exit");
    }
    print("@>>>>>>> CONNECTED SUCCESSFULLY!");
Note: I am still a beginner on this coding world so any help would be useful.
Reply


Messages In This Thread
OnGameModeInit compile error - by Butcher1 - 12.12.2017, 15:38
Re: OnGameModeInit compile error - by jasperschellekens - 12.12.2017, 15:40
Re: OnGameModeInit compile error - by RogueDrifter - 12.12.2017, 15:41
Re: OnGameModeInit compile error - by rfr - 12.12.2017, 15:46
Re: OnGameModeInit compile error - by Butcher1 - 12.12.2017, 15:46
Re: OnGameModeInit compile error - by rfr - 12.12.2017, 15:48
Re: OnGameModeInit compile error - by Lucases - 12.12.2017, 15:51
Re: OnGameModeInit compile error - by Butcher1 - 12.12.2017, 15:54
Re: OnGameModeInit compile error - by rfr - 12.12.2017, 16:04
Re: OnGameModeInit compile error - by jasperschellekens - 12.12.2017, 16:07

Forum Jump:


Users browsing this thread: 1 Guest(s)