Errors
#1

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
Reply
#2

Are you sure it's like that?
pawn Код:
new pMires[MAX_PLAYERS];
Reply
#3

If i write this code, i get more errors.. "pMires" is enum..
Reply
#4

Eww.. You have
pawn Код:
PlayerInfo[playerid][pMires]
// -- AND
pMires[playerid]
explain what each of those do and what do you want to do.
Reply
#5

I want to attach3dtextlabeltoplayer, to show kills on player.
Reply
#6

But you still don't answer on what PlayerInfo[playerid][pMires] and pMires[playerid] do.
And show the enum with the variable.
Reply
#7

Do you have the variable .. in your script? If not copy it to top of your script, below include.
pawn Код:
new pMires[MAX_PLAYERS];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)