Few Errors
#1

Код:
C:\Documents and Settings\Jaber\Bureau\samp03dsvr_R2_win32\gamemodes\Jaber.pwn(263) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Jaber\Bureau\samp03dsvr_R2_win32\gamemodes\Jaber.pwn(263) : warning 215: expression has no effect
C:\Documents and Settings\Jaber\Bureau\samp03dsvr_R2_win32\gamemodes\Jaber.pwn(263) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Jaber\Bureau\samp03dsvr_R2_win32\gamemodes\Jaber.pwn(263) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Jaber\Bureau\samp03dsvr_R2_win32\gamemodes\Jaber.pwn(263) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Here's the Code
Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
forward OnPlayerRegister(playerid, password[]);
public OnPlayerRegister(playerid, password[])
{
	if(IsPlayerConnected(playerid))
	{
	    new string[128];
	    format(string, sizeof(string), "users/%s.ini", pName(playerid));
		if(!dini_Exists(string));
		{
		    dini_Create(string);
		    dini_Set(string, "Key", password);
            dini_IntSet(string, "Cash", PlayerInfo[playerid][pCash]);
			dini_IntSet(string, "Level", PlayerInfo[playerid][pLevel]);
			dini_IntSet(string, "Account", PlayerInfo[playerid][pAccount]);
			dini_IntSet(string, "AdminLevel", PlayerInfo[playerid][pAdmin]);
			dini_IntSet(string, "Respect", PlayerInfo[playerid][pExp]);
			dini_IntSet(string, "UpgradePoints", PlayerInfo[playerid][gPupgrade]);
			dini_IntSet(string, "Kills", PlayerInfo[playerid][pKills]);
			dini_FloatSet(string, "pSHealth", PlayerInfo[playerid][pSHealth]);
			GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
			dini_FloatSet(string, "Health", PlayerInfo[playerid][pHealth]);
Help me Please
Reply
#2

Problem was here, if(!dini_Exists(string));

PHP код:
new PlayerInfo[MAX_PLAYERS][pInfo];
forward OnPlayerRegister(playeridpassword[]);
public 
OnPlayerRegister(playeridpassword[])
{
    if(
IsPlayerConnected(playerid))
    {
        new 
string[128];
        
format(stringsizeof(string), "users/%s.ini"pName(playerid));
        if(!
dini_Exists(string))
        {
            
dini_Create(string);
            
dini_Set(string"Key"password);
            
dini_IntSet(string"Cash"PlayerInfo[playerid][pCash]);
            
dini_IntSet(string"Level"PlayerInfo[playerid][pLevel]);
            
dini_IntSet(string"Account"PlayerInfo[playerid][pAccount]);
            
dini_IntSet(string"AdminLevel"PlayerInfo[playerid][pAdmin]);
            
dini_IntSet(string"Respect"PlayerInfo[playerid][pExp]);
            
dini_IntSet(string"UpgradePoints"PlayerInfo[playerid][gPupgrade]);
            
dini_IntSet(string"Kills"PlayerInfo[playerid][pKills]);
            
dini_FloatSet(string"pSHealth"PlayerInfo[playerid][pSHealth]);
            
GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
            
dini_FloatSet(string"Health"PlayerInfo[playerid][pHealth]); 
Reply
#3

I did that, Still got the error
Reply
#4

Show me that 263 line please.
Reply
#5

Код:
	    format(string, sizeof(string), "users/%s.ini", pName(playerid);
Reply
#6

Remove the (playerid) if you have a global variable like this. new pName[MAX_PLAYER_NAME];
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)