My Position Resets [Help!]
#7

Quote:
Originally Posted by RedFusion
Посмотреть сообщение
pawn Код:
enum pInfo
{
    pPass,
    pCash,
    pAdmin,
    pKills,
    pDeaths,
    pX,
    pY,
    pZ,
    pZr
}


public LoadUser_data(playerid,name[],value[])
{
        INI_Int("Password",PlayerInfo[playerid][pPass]);
        INI_Int("Cash",PlayerInfo[playerid][pCash]);
        INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
        INI_Int("Kills",PlayerInfo[playerid][pKills]);
    INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
        return 1;
}
Replaced:

Код:
{
    pPass,
    pCash,
    pAdmin,
    pKills,
    pDeaths
}
new PlayerInfo[MAX_PLAYERS][pInfo];
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
	INI_Int("Password",PlayerInfo[playerid][pPass]);
	INI_Int("Cash",PlayerInfo[playerid][pCash]);
	INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
	INI_Int("Kills",PlayerInfo[playerid][pKills]);
    INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
 	return 1;
}
with

Код:
enum pInfo
{
    pPass,
    pCash,
    pAdmin,
    pKills,
    pDeaths,
    pX,
    pY,
    pZ,
    pZr
}


public LoadUser_data(playerid,name[],value[])
{
        INI_Int("Password",PlayerInfo[playerid][pPass]);
        INI_Int("Cash",PlayerInfo[playerid][pCash]);
        INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
        INI_Int("Kills",PlayerInfo[playerid][pKills]);
    INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
        return 1;
}
stock UserPath(playerid)
and got

Код:
C:\Users\Cody\Desktop\OrbzGaming\SAMP\Server\gamemodes\grandlarc.pwn(38) : warning 235: public function lacks forward declaration (symbol "LoadUser_data")
C:\Users\Cody\Desktop\OrbzGaming\SAMP\Server\gamemodes\grandlarc.pwn(40) : error 017: undefined symbol "PlayerInfo"
C:\Users\Cody\Desktop\OrbzGaming\SAMP\Server\gamemodes\grandlarc.pwn(40) : warning 215: expression has no effect
C:\Users\Cody\Desktop\OrbzGaming\SAMP\Server\gamemodes\grandlarc.pwn(40) : error 001: expected token: ";", but found "]"
C:\Users\Cody\Desktop\OrbzGaming\SAMP\Server\gamemodes\grandlarc.pwn(40) : error 029: invalid expression, assumed zero
C:\Users\Cody\Desktop\OrbzGaming\SAMP\Server\gamemodes\grandlarc.pwn(40) : fatal error 107: too many error messages on one line

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


4 Errors.
Reply


Messages In This Thread
My Position Resets [Help!] - by xXRealLegitXx - 17.10.2012, 11:46
Re: My Position Resets [Help!] - by TzAkS. - 17.10.2012, 12:33
Re: My Position Resets [Help!] - by xXRealLegitXx - 17.10.2012, 19:36
Re: My Position Resets [Help!] - by caki - 17.10.2012, 20:05
Re: My Position Resets [Help!] - by xXRealLegitXx - 17.10.2012, 20:23
Re: My Position Resets [Help!] - by RedFusion - 17.10.2012, 20:28
Re: My Position Resets [Help!] - by xXRealLegitXx - 17.10.2012, 20:36
Re: My Position Resets [Help!] - by RedFusion - 17.10.2012, 20:40
Re: My Position Resets [Help!] - by xXRealLegitXx - 17.10.2012, 20:58
Re: My Position Resets [Help!] - by xXRealLegitXx - 17.10.2012, 21:02

Forum Jump:


Users browsing this thread: 1 Guest(s)