Define
#1

I get these errors:
Код:
C:\Users\Zachary.Zach-HP.000\Desktop\Prison Shop.pwn(350) : error 029: invalid expression, assumed zero
C:\Users\Zachary.Zach-HP.000\Desktop\Prison Shop.pwn(350) : error 017: undefined symbol "RPN"
C:\Users\Zachary.Zach-HP.000\Desktop\Prison Shop.pwn(350) : fatal error 107: too many error messages on one line
With these codes:
Код:
stock RPN(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    for(new i = 0; i < MAX_PLAYER_NAME; i++)
    {
        if(name[i] == '_') name[i] = ' ';
    }
    return name;
}
What am I doing wrong? Did I forget to define something?
Reply
#2

What is the line 350?
Reply
#3

stock RPN(playerid)
Reply
#4

Make sure you defined it

Код:
#define RPN[MAX_PLAYERS]
Reply
#5

Quote:
Originally Posted by PawnOX
Посмотреть сообщение
Make sure you defined it

Код:
#define RPN[MAX_PLAYERS]
Already did.
Reply
#6

How are you using the RPN function?

It has 0 errors...
Reply
#7

Make sure you close the brackets of the function right before it
Reply
#8

Quote:
Originally Posted by PawnOX
Посмотреть сообщение
Make sure you defined it

Код:
#define RPN[MAX_PLAYERS]
Wrong, don't define it remove it, this guy literally have no idea what he's talking about.

I've compiled your code myself it works fine, remove the #define RPN[MAX_PLAYERS] and all is good.
Reply
#9

Cancel that, I fixed it just by fucking around with stuff.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)