Help Me About My Gamemode.
#1

here my gamemode :
http://pastebin.com/SiG2ycnb
the error :
Код:
C:\Users\Admin\Desktop\Example\gamemodes\Gany.pwn(90) : error 028: invalid subscript (not an array or too many subscripts): "pInfo"
C:\Users\Admin\Desktop\Example\gamemodes\Gany.pwn(90) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\Example\gamemodes\Gany.pwn(90) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\Example\gamemodes\Gany.pwn(90) : fatal error 107: too many error messages on one line
i'm forgot to delete a #if defined FILTERSCRIPT and #endif but when i delete it have this error
Reply
#2

Help please
Reply
#3

Line 79 should be:
pawn Код:
};
That command on line 1937 is properly.By the way you don't need 4 includes which are #included at the top of your script.gDialog, pvehicles,core and float
Reply
#4

thanks for the }; in line 79 but it still have error
Код:
C:\Users\Admin\Desktop\Example\gamemodes\Gany.pwn(90) : error 028: invalid subscript (not an array or too many subscripts): "pInfo"
C:\Users\Admin\Desktop\Example\gamemodes\Gany.pwn(90) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\Example\gamemodes\Gany.pwn(90) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\Example\gamemodes\Gany.pwn(90) : fatal error 107: too many error messages on one line
Reply
#5

Line 90: [] - Invalid.You should have something in these brackets.
Reply
#6

Код:
C:\Users\Admin\Desktop\Example\gamemodes\Gany.pwn(90) : error 035: argument type mismatch (argument 2)
C:\Users\Admin\Desktop\Example\gamemodes\Gany.pwn(90) : error 028: invalid subscript (not an array or too many subscripts): "pInfo"
C:\Users\Admin\Desktop\Example\gamemodes\Gany.pwn(90) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\Example\gamemodes\Gany.pwn(90) : fatal error 107: too many error messages on one line
i'm delete it in the line 90 name[], value[]
Reply
#7

Just add 0. For example value[0].
Reply
#8

just 4 error
if you have teamview please help me
Reply
#9

show your code here
Reply
#10

replace this with the old one

Код:
enum pInfo
{
    Pass[129],
    // pass
    Adminlevel,
    // adminlevel
    VIPlevel,
    // viplevel
    Money,
    // money/cash
    Scores,
    // scores
    Kills,
    // kills
    Deaths
    // deaths
};
Код:
forward loadaccount_user(playerid, name[], value[0]);
public loadaccount_user(playerid, name[], value[0])
{
    INI_String("Password", pInfo[playerid][Pass],129);
    INI_Int("AdminLevel",pInfo[playerid][Adminlevel]);
    INI_Int("VIPLevel",pInfo[playerid][VIPlevel]);
    INI_Int("Money",pInfo[playerid][Money]);
    INI_Int("Scores",pInfo[playerid][Scores]);
    INI_Int("Kills",pInfo[playerid][Kills]);
    INI_Int("Deaths",pInfo[playerid][Deaths]);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)