SA-MP Forums Archive
Help Me About My Gamemode. - 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: Help Me About My Gamemode. (/showthread.php?tid=446466)



Help Me About My Gamemode. - xganyx - 26.06.2013

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


Re: Help Me About My Gamemode. - xganyx - 26.06.2013

Help please


Re: Help Me About My Gamemode. - Smokkr - 26.06.2013

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


Re: Help Me About My Gamemode. - xganyx - 26.06.2013

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



Re: Help Me About My Gamemode. - Smokkr - 26.06.2013

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


Re: Help Me About My Gamemode. - xganyx - 26.06.2013

Код:
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[]


Re: Help Me About My Gamemode. - Smokkr - 26.06.2013

Just add 0. For example value[0].


Re: Help Me About My Gamemode. - xganyx - 26.06.2013

just 4 error
if you have teamview please help me


Re: Help Me About My Gamemode. - Salsa - 26.06.2013

show your code here


Re: Help Me About My Gamemode. - OpticKiller - 26.06.2013

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