Jump to content

Erori ne-intelese.


Recommended Posts

Deci am pus un sistem si imi da aceste erori, nu inteleg de ce :

 

C:\Users\Sammy\Desktop\gamemode by Romakevo\gamemodes\AlphaCS.pwn(4808) : error 028: invalid subscript (not an array or too many subscripts): "pInfo"    C:\Users\Sammy\Desktop\gamemode by Romakevo\gamemodes\AlphaCS.pwn(4808) : error 001: expected token: ";", but found "]"
C:\Users\Sammy\Desktop\gamemode by Romakevo\gamemodes\AlphaCS.pwn(4808) : error 029: invalid expression, assumed zero
C:\Users\Sammy\Desktop\gamemode by Romakevo\gamemodes\AlphaCS.pwn(4808) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
 

 

/ / / / / / /

    if(!IsPlayerInRangeOfPoint(playerid, 4.0, 543.1123,-1282.4344,17.2422)) return SCM(playerid, -1, OnlyCasino);
    if(cEnter == KEY_SECONDARY_ATTACK) if(!IsPlayerInRangeOfPoint(playerid, 4.0, 543.1123,-1282.4344,17.2422))
    {
        GetPlayerName(playerid, pInfo[playerid][pName], MAX_PLAYER_NAME);                                // Aceasta este eroarea de la linia    | 4808 |


        RouletteInGame[playerid] = 0;

        CasinoDrawPlayer[playerid][0] = CreatePlayerTextDraw(playerid,91.666679, 344.296356, "BALANCE: SUMMA");
        PlayerTextDrawLetterSize(playerid,CasinoDrawPlayer[playerid][0], 0.201666, 1.205925);
        PlayerTextDrawAlignment(playerid,CasinoDrawPlayer[playerid][0], 1);
        PlayerTextDrawColor(playerid,CasinoDrawPlayer[playerid][0], -1);
        PlayerTextDrawSetShadow(playerid,CasinoDrawPlayer[playerid][0], 0);
        PlayerTextDrawSetOutline(playerid,CasinoDrawPlayer[playerid][0], 1);
        PlayerTextDrawBackgroundColor(playerid,CasinoDrawPlayer[playerid][0], 51);
        PlayerTextDrawFont(playerid,CasinoDrawPlayer[playerid][0], 2);
        PlayerTextDrawSetProportional(playerid,CasinoDrawPlayer[playerid][0], 1);

        CasinoDrawPlayer[playerid][1] = CreatePlayerTextDraw(playerid,438.333282, 343.881561, "BET: NICIUNUL");
        PlayerTextDrawLetterSize(playerid,CasinoDrawPlayer[playerid][1], 0.201000, 1.205926);
        PlayerTextDrawAlignment(playerid,CasinoDrawPlayer[playerid][1], 1);
        PlayerTextDrawColor(playerid,CasinoDrawPlayer[playerid][1], -1);
        PlayerTextDrawSetShadow(playerid,CasinoDrawPlayer[playerid][1], 0);
        PlayerTextDrawSetOutline(playerid,CasinoDrawPlayer[playerid][1], 1);
        PlayerTextDrawBackgroundColor(playerid,CasinoDrawPlayer[playerid][1], 51);
        PlayerTextDrawFont(playerid,CasinoDrawPlayer[playerid][1], 2);
        PlayerTextDrawSetProportional(playerid,CasinoDrawPlayer[playerid][1], 1);
    }
     return 1;
}

 

Link to comment
Share on other sites

Deci... Daca nu ma insel in loc de pInfo[playerid][pName] ar trebui sa folosesti PlayerInfo[playerid][pName], astfel:

GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME); 

Tu ai enumerate niste variable in arrayul pInfo, iar variabila PlayerInfo le foloseste pe cele din pInfo. Sper ca ai inteles.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.