12.12.2017, 15:38
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"
Note: I am still a beginner on this coding world so any help would be useful.
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!");