22.06.2013, 02:40
pawn Код:
C:\Users\pppp\Desktop\Iniodo0RPG\gamemodes\RPG.pwn(124) : error 029: invalid expression, assumed zero
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
new file[128];
new aname[MAX_PLAYER_NAME];//5000, 0
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), CONTAS, aname);
SetPlayerSkin(playerid,dini_Int(file, "Skin"));
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2128.0952,35.1667,39.1944);
SetPlayerCameraPos(playerid,2106.9905,35.4213,35.5485);
SetPlayerCameraLookAt(playerid,2128.0952,35.1667,39.1944);
SetPlayerFacingAngle(playerid, 85.0331);
SetPlayerInterior(playerid, 0);
{
if(!dini_Exists(file))
{
format(STRX, sizeof(STRX), "Usuбrio: %s\nInsira uma senha:", aname);
ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_PASSWORD, "Registrar", STRX, "Registrar", "Sair");
SetPlayerSkin(playerid, 4);
}
if(dini_Exists(file))
{
format(STRX, sizeof(STRX), "Usuбrio: %s\nInsira sua senha:", aname);
ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Logar", STRX, "Logar", "Sair");
}
}
else { // Aqui estб o erro
SendClientMessage(playerid, Vermelho, "| KICK | Vocк foi kickado(a) por nгo se registrar / logar");
Kick(playerid);
return 1;
}
return 1;
}