Multiple compiling errors
#1

Quote:

- 1203: error 029: invalid expression, assumed zero
- 1203: error 029: invalid expression, assumed zero
- 1203: warning 215: expression has no effect
- 1203: error 001: expected token: ";", but found "]"
- 1203: fatal error 107: too many error messages on one line

1201-1205

Quote:

public GetPlayerAVSAdmin(playerid)
{
return PlayerInfo[playerid][pAdmin];
}
}

Can someone help me solve this I'm pretty new to this stuff.
Reply
#2

remove the (playerid) on GetPlayerAVSAdmin.. [Not sure XD]
Reply
#3

Quote:
Originally Posted by Kevin FOx
Посмотреть сообщение
remove the (playerid) on GetPlayerAVSAdmin.. [Not sure XD]
Yes, I get only one error when I do that:

Quote:

(1202) : error 001: expected token: ";", but found "{"

Reply
#4

Try - Public GetPlayerAVSAdmin; - not sure..!.!!.!
Reply
#5

Is that second bracket in use?
Reply
#6

Try this

pawn Код:
public GetPlayerAVSAdmin(playerid)
{
    return PlayerInfo[playerid][pAdmin]
}
Reply
#7

Quote:
Originally Posted by Kevin FOx
Посмотреть сообщение
Try this

pawn Код:
public GetPlayerAVSAdmin(playerid)
{
    return PlayerInfo[playerid][pAdmin]
}
What the hell is wrong with this thing lol. Still no luck Kevin, getting the same errors.
Reply
#8

what errors are you getting after you removed the second bracket?
Reply
#9

Quote:
Originally Posted by Stu1
Посмотреть сообщение
what errors are you getting after you removed the second bracket?
Quote:

public GetPlayerAVSAdmin(playerid)
{
return PlayerInfo[playerid][pAdmin]
}

Quote:

(1203) : error 029: invalid expression, assumed zero
(1203) : error 029: invalid expression, assumed zero
(1203) : warning 215: expression has no effect
(1203) : error 001: expected token: ";", but found "]"
(1203) : fatal error 107: too many error messages on one line

These ones.
Reply
#10

Код:
public GetPlayerAVSAdmin(playerid)
{
return PlayerInfo[playerid][pAdmin]
}
You are missing the ; after return PlayerInfo[playerid][pAdmin]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)