SA-MP Forums Archive
Multiple compiling errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Multiple compiling errors (/showthread.php?tid=388965)



Multiple compiling errors - Zerovda - 31.10.2012

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.


Re: Multiple compiling errors - Kevin FOx - 31.10.2012

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


Re: Multiple compiling errors - Zerovda - 31.10.2012

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 "{"




Re: Multiple compiling errors - Kevin FOx - 31.10.2012

Try - Public GetPlayerAVSAdmin; - not sure..!.!!.!


Re: Multiple compiling errors - Stu1 - 31.10.2012

Is that second bracket in use?


Re: Multiple compiling errors - Kevin FOx - 31.10.2012

Try this

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



Re: Multiple compiling errors - Zerovda - 31.10.2012

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.


Re: Multiple compiling errors - Stu1 - 31.10.2012

what errors are you getting after you removed the second bracket?


Re: Multiple compiling errors - Zerovda - 31.10.2012

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.


Re: Multiple compiling errors - Stu1 - 31.10.2012

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