Problem with Spawnpoints
#4

@Godhimself

Hmm, I dunno if this is right, I made it like this:

pawn Код:
if(INI_Open(getINI(playerid))) {
        INI_WriteInt("Cash", GetPlayerMoney(playerid));
        INI_WriteInt("Admin", PlayerInfo[playerid][pAdmin]);
        INI_WriteInt("FirstTime", gFirstTimeHasJoined[playerid]);
        INI_WriteInt("Forever", gPlayerSkinForEver[playerid]);
        INI_WriteInt("Skin", GetPlayerSkin(playerid));
        INI_Save();
        INI_Close();
And then:

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(gFirstTimeHasJoined[playerid])
    {
        return OnPlayerRequestClass;
        SendClientMessage,(playerid,COLOR_RED,"Choose your skin carefully! You can't change it anymore after this!");
    }
    else if(gPlayerSkinForEver(playerid))
    {
        GetPlayerSkin(playerid);
        SendClientMessage,(playerid,COLOR_RED,"You are already in a gang!");
    }
    PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
    SetPlayerToTeamColor(playerid);
    return 1;
}
But 6 errors:

Код:
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(338) : error 076: syntax error in the expression, or invalid function call
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(339) : error 076: syntax error in the expression, or invalid function call
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(339) : warning 215: expression has no effect
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(341) : error 012: invalid function call, not a valid address
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(341) : warning 215: expression has no effect
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(341) : error 001: expected token: ";", but found ")"
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(341) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(341) : fatal error 107: too many error messages on one line

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


6 Errors.
338:

pawn Код:
return OnPlayerRequestClass;

339:

pawn Код:
SendClientMessage,(playerid,COLOR_RED,"Choose your skin carefully! You can't change it anymore after this!");

And 341:

pawn Код:
else if(gPlayerSkinForEver(playerid))
Reply


Messages In This Thread
Problem with Spawnpoints - by samtey - 02.08.2011, 08:58
Re: Problem with Spawnpoints - by Godhimself - 02.08.2011, 09:31
Re: Problem with Spawnpoints - by sansko - 02.08.2011, 09:34
AW: Problem with Spawnpoints - by samtey - 02.08.2011, 11:07
Re: Problem with Spawnpoints - by Gray - 02.08.2011, 11:15
AW: Problem with Spawnpoints - by samtey - 02.08.2011, 12:02
Re: Problem with Spawnpoints - by iPLEOMAX - 02.08.2011, 12:05
AW: Problem with Spawnpoints - by samtey - 02.08.2011, 12:14
AW: Problem with Spawnpoints - by samtey - 02.08.2011, 12:36
Re: Problem with Spawnpoints - by Toreno - 02.08.2011, 13:22
AW: Problem with Spawnpoints - by samtey - 02.08.2011, 13:28
Re: Problem with Spawnpoints - by Toreno - 02.08.2011, 13:46
AW: Problem with Spawnpoints - by samtey - 02.08.2011, 13:50
AW: Problem with Spawnpoints - by samtey - 02.08.2011, 15:49
AW: Problem with Spawnpoints - by samtey - 02.08.2011, 16:04
AW: Problem with Spawnpoints - by samtey - 02.08.2011, 16:55

Forum Jump:


Users browsing this thread: 1 Guest(s)