SA-MP Forums Archive
[Help] Complie warning 8 helpme - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] Complie warning 8 helpme (/showthread.php?tid=116727)



[Help] Complie warning 8 helpme - vagosz - 30.12.2009

Код:
D:\ўН§©С№\GTA\GTA MARIO\gamemodes\lcrp.pwn(30) : warning 201: redefinition of constant/macro (symbol "MYSQL_HOST")
D:\ўН§©С№\GTA\GTA MARIO\gamemodes\lcrp.pwn(31) : warning 201: redefinition of constant/macro (symbol "MYSQL_USER")
D:\ўН§©С№\GTA\GTA MARIO\gamemodes\lcrp.pwn(32) : warning 201: redefinition of constant/macro (symbol "MYSQL_PASS")
D:\ўН§©С№\GTA\GTA MARIO\gamemodes\lcrp.pwn(33) : warning 201: redefinition of constant/macro (symbol "MYSQL_DB")
D:\ўН§©С№\GTA\GTA MARIO\gamemodes\lcrp.pwn(22648) : warning 217: loose indentation
D:\ўН§©С№\GTA\GTA MARIO\gamemodes\lcrp.pwn(22649) : warning 217: loose indentation
D:\ўН§©С№\GTA\GTA MARIO\gamemodes\lcrp.pwn(22652) : warning 217: loose indentation
D:\ўН§©С№\GTA\GTA MARIO\gamemodes\lcrp.pwn(42985) : warning 203: symbol is never used: "AdminDuty"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Warnings.
th



Re: [Help] Complie warning 8 helpme - [HiC]TheKiller - 30.12.2009

Post some code.


Re: [Help] Complie warning 8 helpme - Hiitch - 30.12.2009

For warnings 1 - 4:

You defined MYSQL_HOST, MYSQL_USER, MYSQL_PASS and MYSQL_DB 2 or more times alerady, give the variable another name.

warnings on lines 22648, 22648 and 22652 can be fixed by tabbing around. (Hitting tab to line it up)

warning on line 42985: You made AdminDuty equal something, this should most likely equal 1.
i.e. AdminDuty[playerid] == 1; or AdminDuty[playerid] = 1;

Hiitchy-


Re: [Help] Complie warning 8 helpme - vagosz - 30.12.2009

Quote:
Originally Posted by Hiitchy - Oui, tu comprends?
For warnings 1 - 4:

You defined MYSQL_HOST, MYSQL_USER, MYSQL_PASS and MYSQL_DB 2 or more times alerady, give the variable another name.

warnings on lines 22648, 22648 and 22652 can be fixed by tabbing around. (Hitting tab to line it up)

warning on line 42985: You made AdminDuty equal something, this should most likely equal 1.
i.e. AdminDuty[playerid] == 1; or AdminDuty[playerid] = 1;

Hiitchy-
thank you