Jump to content
  • 0

pomoc GetPVarInt Errors


LemoNSK

Dotaz

Dobrý prosím opravíte mi chyby? Děkuju...

Toto mám nahoře:

enum SInfo
{
   viplevel
}

new Info[MAX_PLAYERS][PInfo];
 

Dole v stocku je toto:

stock Ulozeni(playerid)
{
	new Udaje[56];
	new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid,name,sizeof(name));
	format(Udaje,sizeof(Udaje),"/VIP/%s.txt");
	
	dini_IntSet(Udaje, "VIPLevel",GetPVarInt[playerid][Info]);
	return 1;
}

A nahoře je toto a tam dole stocku je více:

	new Udaje[56];
	new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid,name,sizeof(name));
	format(Udaje,sizeof(Udaje),"/VIP/%s.txt");

	if(dini_Exists(Udaje))
	{
	    Vylozeni(playerid);
	}
	else
	{
	    Vytvoreni(playerid);	
}

Chyby zde:

C:\Users\Lemon\Desktop\vip.pwn(423) : error 028: invalid subscript (not an array or too many subscripts): "GetPVarInt"
C:\Users\Lemon\Desktop\vip.pwn(423) : warning 215: expression has no effect
C:\Users\Lemon\Desktop\vip.pwn(423) : error 001: expected token: ";", but found "]"
C:\Users\Lemon\Desktop\vip.pwn(423) : error 029: invalid expression, assumed zero
C:\Users\Lemon\Desktop\vip.pwn(423) : 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.

Link to comment
Share on other sites

1 odpověd na tuto otázku

Recommended Posts

  • 0
dini_IntSet(Udaje, "VIPLevel",Info[playerid][viplevel]);

+ tam nahoře

enum SInfo
{
   viplevel
}

new Info[MAX_PLAYERS][SInfo];
 

místo SInfo tam zůszalo PInfo

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...