undefined symbol
#1

So I have an if statement if player is banned or not. But why the heck Pos is not defined?

pawn Код:
if(dini_Int(Pos(playerid), "Banned")==1
The error:
Код:
error 017: undefined symbol "Pos"
Reply
#2

Add something like above your line.
Example:
pawn Код:
new pos[30];
Also, I don't really understand your Ban line :/
Reply
#3

The ban was just an example, you know when we want to check from the dini we add it like this

pawn Код:
if(dini_Exists(Pos(playerid)))
    {
        format(str1, 500, "{FFFFFF}Please punch in your password in order to play.\nAccount Name: %s",name);
        ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Membership Area", str1, "Login", "");
    }
It gives me an undefined symbol error of "Pos" not defined.
Reply
#4

This is my question: Is there any "Pos" inside your line ?

If not you can just create a variable or something like the code I posted just now.
Reply
#5

There is a Pos inside my line.

dini_Exists(Pos(playerid)
Reply
#6

Isn't it supposed to be:

pawn Код:
if(dini_Int(Pos(playerid), "Banned" == 1)
I forgot how Dini looks, so i could be wrong.
Reply
#7

Dude, you don't have a stock named "Pos" in your script.
Reply
#8

Quote:
Originally Posted by DobbysGamertag
Посмотреть сообщение
Isn't it supposed to be:

pawn Код:
if(dini_Int(Pos(playerid), "Banned" == 1)
Yeah but that doesn't helps me fixing the Pos thingy.


Quote:
Originally Posted by gtakillerIV
Посмотреть сообщение
Dude, you don't have a stock named "Pos" in your script.
How would that look like?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)