Jump to content

Recommended Posts

Posted

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;
}

 

Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.