PDA

View Full Version : Login/register changed fom INI to DINI but errors


Mustafa6155
01/12/2012, 11:59 AM
New i got those errors

C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1488) : error 028: invalid subscript (not an array or too many subscripts): "Info"
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1488) : warning 215: expression has no effect
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1488) : error 001: expected token: ";", but found "]"
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1488) : error 029: invalid expression, assumed zero
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1488) : 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.


This is my enum

enum Info
{
Pass,
Money,
AdminLevel,
Kills,
Score,
Deaths,
Bombs,
Rank,
KD,
Vip,
sex,
age,
Logged
}
new PlayerInfo[MAX_PLAYERS][Info];


And this is the error line.

dini_IntSet(path, "sex", Info[playerid][sex]);
dini_IntSet(path, "age", Info[playerid][age]);
dini_IntSet(path, "Money", Info[playerid][Money]);
dini_IntSet(path, "AdminLevel", Info[playerid][AdminLevel]);
dini_IntSet(path, "Kills", Info[playerid][Kills]);
dini_IntSet(path, "Score", Info[playerid][Score]);
dini_IntSet(path, "Deaths", Info[playerid][Deaths]);
dini_IntSet(path, "Bombs", Info[playerid][Bombs]);
dini_IntSet(path, "Rank 0/10", Info[playerid][Rank]);
dini_IntSet(path, "KD", Info[playerid][KD]);
dini_IntSet(path, "Vip", Info[playerid][Vip]);
Info[playerid][logged] = 0;


I show u more becuse id that fixed te other will to?

Thanks for reading, i hope u can help me.

Mustafa6155
01/12/2012, 12:58 PM
SomeBody?

dr.lozer
01/12/2012, 01:09 PM
Dude use like this


enum Info
{
Pass,
Money,
AdminLevel,
Kills,
Score,
Deaths,
Bombs,
Rank,
KD,
Vip,
sex,
age,
Logged
}
new PlayerInfo[MAX_PLAYERS][Info]; // use this PlayerInfo


Dont use Info[playerid]
Use PlayerInfo[playerid] coz you made this


new PlayerInfo[MAX_PLAYERS][Info];



dini_IntSet(path, "sex", PlayerInfo[playerid][sex]);
dini_IntSet(path, "age", PlayerInfo[playerid][age]);
dini_IntSet(path, "Money", PlayerInfo[playerid][Money]);
dini_IntSet(path, "AdminLevel", PlayerInfo[playerid][AdminLevel]);
dini_IntSet(path, "Kills", PlayerInfo[playerid][Kills]);
dini_IntSet(path, "Score", PlayerInfo[playerid][Score]);
dini_IntSet(path, "Deaths", PlayerInfo[playerid][Deaths]);
dini_IntSet(path, "Bombs", PlayerInfo[playerid][Bombs]);
dini_IntSet(path, "Rank 0/10", PlayerInfo[playerid][Rank]);
dini_IntSet(path, "KD", PlayerInfo[playerid][KD]);
dini_IntSet(path, "Vip", PlayerInfo[playerid][Vip]);
PlayerInfo[playerid][logged] = 0;


if your muslim .... Salam :) im muslim too :D ( Hazara )

Mustafa6155
01/12/2012, 01:45 PM
WTF i got this

C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1499) : error 017: undefined symbol "logged"
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1501) : warning 217: loose indentation
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1501) : error 029: invalid expression, assumed zero
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1501) : error 004: function "OnPlayerSpawn" is not implemented
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1632) : warning 225: unreachable code
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1632) : error 029: invalid expression, assumed zero
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1632) : error 004: function "OnPlayerDeath" is not implemented
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1642) : error 017: undefined symbol "killerid"
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1674) : warning 225: unreachable code
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1674) : error 029: invalid expression, assumed zero
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1674) : error 004: function "OnVehicleSpawn" is not implemented
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1679) : warning 225: unreachable code
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1679) : error 029: invalid expression, assumed zero
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1679) : error 004: function "OnVehicleDeath" is not implemented
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1684) : warning 225: unreachable code
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1684) : error 029: invalid expression, assumed zero
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1684) : error 004: function "OnPlayerText" is not implemented
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1689) : warning 225: unreachable code
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1689) : error 029: invalid expression, assumed zero
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1689) : error 004: function "zcmd_OnPlayerCommandText" is not implemented
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1691) : error 017: undefined symbol "cmdtext"
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1699) : warning 225: unreachable code
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1699) : error 029: invalid expression, assumed zero
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1699) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1704) : warning 225: unreachable code
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1704) : error 029: invalid expression, assumed zero
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1704) : error 004: function "OnPlayerExitVehicle" is not implemented
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1709) : warning 225: unreachable code
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1709) : error 029: invalid expression, assumed zero
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1709) : error 004: function "OnPlayerStateChange" is not implemented
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1714) : warning 225: unreachable code
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1714) : error 029: invalid expression, assumed zero
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1714) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1719) : warning 225: unreachable code
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1719) : error 029: invalid expression, assumed zero
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1719) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1724) : warning 225: unreachable code
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\TDM.pwn(1724) : error 029: invalid expression, assumed zero

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


26 Errors.

AaronKillz
01/12/2012, 02:20 PM
You forgot to add a } somewhere.