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: Errors (
/showthread.php?tid=395914)
Errors -
Louris - 28.11.2012
Lines:
Код:
public OnPlayerConnect(playerid)
{
new string[256];
format(string, sizeof(string), "Mirtys: %d", PlayerInfo[playerid][pMires]);
pMires[playerid] = Create3DTextLabel("Mires:", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(pMires[playerid], i, 0.0, 0.0, 0.7);
Error line:
Код:
pMires[playerid] = Create3DTextLabel("Mires:", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Errors:
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 136) : error 028: invalid subscript (not an array or too many subscripts): "pMires"
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 136) : warning 215: expression has no effect
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 136) : error 001: expected token: ";", but found "]"
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 136) : error 029: invalid expression, assumed zero
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 136) : fatal error 107: too many error messages on one line
Re: Errors -
Konstantinos - 28.11.2012
Are you sure it's like that?
Re: Errors -
Louris - 28.11.2012
If i write this code, i get more errors.. "pMires" is enum..
Re: Errors -
Konstantinos - 28.11.2012
Eww.. You have
pawn Код:
PlayerInfo[playerid][pMires]
// -- AND
pMires[playerid]
explain what each of those do and what do you want to do.
Re: Errors -
Louris - 28.11.2012
I want to attach3dtextlabeltoplayer, to show kills on player.
Re: Errors -
Konstantinos - 28.11.2012
But you still don't answer on what
PlayerInfo[playerid][pMires] and
pMires[playerid] do.
And show the enum with the variable.
AW: Errors -
Skimmer - 28.11.2012
Do you have the variable .. in your script? If not copy it to top of your script, below
include.