irritating warnings.. -
jhn - 03.05.2013
warning 201: redefinition of constant/macro (symbol "MAX_PLAYERS")
warning 203: symbol is never used: "Langs_AddLanguage"
how to fix this ;:=
Re: irritating warnings.. -
JordanMaddox - 03.05.2013
MAX_PLAYERS is repeating itself, post the two instances
Remove the Langs_AddLanguage line
Re: irritating warnings.. -
[MG]Dimi - 03.05.2013
Before you define MAX_PLAYERS add
and second warning is nothing important, but if you want to remove it add
pawn Код:
#pragma unused Langs_AddLanguage
Re: irritating warnings.. -
jhn - 03.05.2013
Quote:
Originally Posted by [MG]Dimi
Before you define MAX_PLAYERS add
and second warning is nothing important, but if you want to remove it add
pawn Код:
#pragma unused Langs_AddLanguage
|
the #pragma works but if i #undef MAX_PLAYERS right before max_players i just get errors instead :/
Re: irritating warnings.. -
[MG]Dimi - 03.05.2013
Well only lines in your code related to MAX_PLAYERS have to be
pawn Код:
#undef MAX_PLAYERS
#define MAX_PLAYER [new value]
Re: irritating warnings.. -
jhn - 03.05.2013
Yea and this one
new PlayerInfo[MAX_PLAYERS][pInfo];
Re: irritating warnings.. -
[MG]Dimi - 03.05.2013
Are you maybe including include file next to a_samp.inc which has MAX_PLAYERS defined already?
Re: irritating warnings.. -
jhn - 03.05.2013
works when i deleted the define thx :P
and now im gettign this shit..
C:\Users\Johan\Desktop\saaasa\gamemodes\lol.pwn(17 2) : warning 213: tag mismatch
C:\Users\Johan\Desktop\saaasa\gamemodes\lol.pwn(17 2) : warning 213: tag mismatch
C:\Users\Johan\Desktop\saaasa\gamemodes\lol.pwn(17 2) : warning 213: tag mismatch
C:\Users\Johan\Desktop\saaasa\gamemodes\lol.pwn(17 3) : warning 213: tag mismatch
C:\Users\Johan\Desktop\saaasa\gamemodes\lol.pwn(17 3) : warning 213: tag mismatch
C:\Users\Johan\Desktop\saaasa\gamemodes\lol.pwn(17 3) : warning 213: tag mismatch
C:\Users\Johan\Desktop\saaasa\gamemodes\lol.pwn(17 5) : warning 217: loose indentation
This is the code
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/jetpack", cmdtext, true, 10) == 0)
{
new float:X, float:Y, float:Z;
GetPlayerPos(Playerid, X, Y, Z);
CreatePickup(370, 3, X, Y, Z);
return 1;