irritating warnings..
#1

warning 201: redefinition of constant/macro (symbol "MAX_PLAYERS")
warning 203: symbol is never used: "Langs_AddLanguage"

how to fix this ;:=
Reply
#2

MAX_PLAYERS is repeating itself, post the two instances
Remove the Langs_AddLanguage line
Reply
#3

Before you define MAX_PLAYERS add
pawn Код:
#undef MAX_PLAYERS
and second warning is nothing important, but if you want to remove it add
pawn Код:
#pragma unused Langs_AddLanguage
Reply
#4

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
Before you define MAX_PLAYERS add
pawn Код:
#undef MAX_PLAYERS
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 :/
Reply
#5

Well only lines in your code related to MAX_PLAYERS have to be
pawn Код:
#undef MAX_PLAYERS
#define MAX_PLAYER [new value]
Reply
#6

Yea and this one
new PlayerInfo[MAX_PLAYERS][pInfo];
Reply
#7

Are you maybe including include file next to a_samp.inc which has MAX_PLAYERS defined already?
Reply
#8

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;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)