Jump to content
  • 0

pomoc [HELP]Úkládání premium účtu Y_INI


liftZz

Dotaz

Řádek ve kterém se nachází chyba

INI_WriteInt(File,"Premium",Premium[playerid][pPremium]);

 

Chybová hláška

trakos.pwn(272) : error 001: expected token: ",", but found "["
trakos.pwn(272) : error 029: invalid expression, assumed zero
trakos.pwn(272) : warning 215: expression has no effect
trakos.pwn(272) : error 001: expected token: ";", but found "]"
trakos.pwn(272) : fatal error 107: too many error messages on one line

Link to comment
Share on other sites

6 odpovědí na tuto otázku

Recommended Posts

  • 0

hoď ten enum ako to tam máš spravené

enum pInfo
{
pPass,
pCash,
pAdmin,
pKills,
pPremium,
pDeaths
}
new PlayerInfo[MAX_PLAYERS][pInfo];

Link to comment
Share on other sites

  • 0

INI_WriteInt(File,"Premium",PlayerInfo[playerid][pPremium]); // oprav

Jo skusím to ale jak pak INI vyčte že mám někde v módu funkci
new Premium[MAX_PLAYERS];

Link to comment
Share on other sites

  • 0

šak potom to budeš použivať

PlayerInfo[playerid][pPremium] 

do toho to budeš načítavať

if(PlayerInfo[playerid][pPremium] == 2) balbla = PlayerInfo[playerid][pPremium]; // etc

a podobne (dúfam že som ťa správne pochopil)

  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

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
×
×
  • Create New...