02.08.2011, 11:07
@Godhimself
Hmm, I dunno if this is right, I made it like this:
And then:
But 6 errors:
338:
339:
And 341:
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();
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;
}
Код:
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.
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))