Warning PLS Help me
#1

PHP код:
C:\Users\Kosta\Desktop\615_test_rp_gm_\gamemodes\gm.pwn(146) : warning 201redefinition of constant/macro (symbol "FD2")
C:\Users\Kosta\Desktop\615_test_Rp_gm_\gamemodes\gm.pwn(56233) : warning 219local variable "Admin" shadows a variable at a preceding level
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
2 Warnings

Help me pls To Fix This problem some 1
Reply
#2

Show your Code xD
Reply
#3

Wich Content? i am noob tho
Reply
#4

Show us the line 146 & 56233.
Reply
#5

1st: "FD2" is already defined. Un-define it then re-define it, or simply remove the define you have on your gamemode.

Example:
pawn Код:
#undef FD2
#define FD2(...) ...
2nd. You have the variable "Admin" defined two times in one instance. Change the name of one or remove one of the declarations.

P.S. Don't copy and paste, it won't work, they are just examples.
Reply
#6

148: #define FD2!strcmp(PlayerInfo[playerid][pNames], "Alex_Flix", true) //
56233: new Admin = PlayerInfo[i][pAdmin];
Reply
#7

Create a function instead:
pawn Код:
stock FD2(playerid)
{
    new admin_level;
    if(!strcmp(PlayerInfo[playerid][pNames], "Alex_Flix", true))
    {
        admin_level = PlayerInfo[i][pAdmin];
    }
    return admin_level;
}
I don't think this is what you are aiming for, since you could just use "PlayerInfo[i][pAdmin]". But yeah, use a function instead.
Reply
#8

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
Create a function instead:
pawn Код:
stock FD2(playerid)
{
    new admin_level;
    if(!strcmp(PlayerInfo[playerid][pNames], "Alex_Flix", true))
    {
        admin_level = PlayerInfo[i][pAdmin];
    }
    return admin_level;
}
I don't think this is what you are aiming for, since you could just use "PlayerInfo[i][pAdmin]". But yeah, use a function instead.
This Code is For :148? or 56233 ?
Reply
#9

Quote:
Originally Posted by Dainteresebuli
Посмотреть сообщение
This Code is For :148? or 56233 ?
Both.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)