new.pwn
[7,34К]
[ Scr ][ All ]
Полноценная Регистрация На Mxini.inc
#42
Отправлено 30 июня 2012 - 19:11
symbol is assigned a value that is never used: "saveacctimer"
Сообщение отредактировал chedurek: 30 июня 2012 - 19:12
#44
Отправлено 14 июля 2012 - 22:59
C:\Users\1\Desktop\OneDay\gamemodes\New.pwn(37) : error 017: undefined symbol "saveacctimer" C:\Users\1\Desktop\OneDay\gamemodes\New.pwn(38) : warning 217: loose indentation C:\Users\1\Desktop\OneDay\gamemodes\New.pwn(43) : error 017: undefined symbol "saveacctimer" C:\Users\1\Desktop\OneDay\gamemodes\New.pwn(44) : warning 217: loose indentation C:\Users\1\Desktop\OneDay\gamemodes\New.pwn(57) : error 017: undefined symbol "logged" C:\Users\1\Desktop\OneDay\gamemodes\New.pwn(57) : warning 215: expression has no effect C:\Users\1\Desktop\OneDay\gamemodes\New.pwn(57) : error 001: expected token: ";", but found "]" C:\Users\1\Desktop\OneDay\gamemodes\New.pwn(57) : error 029: invalid expression, assumed zero C:\Users\1\Desktop\OneDay\gamemodes\New.pwn(57) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 6 Errors.
Вот, не получилось, помогите исправить.
#45
Отправлено 24 июля 2012 - 19:17
Помогите,хочу добавить сохранение на скин.
ИД скина в файл сохраняется,но при перезаходе все равно скин стандартный.
public SaveAccounts(playerid)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new PlayerName[MAX_PLAYER_NAME], account[128];
GetPlayerName(i,PlayerName,sizeof(PlayerName));
format(account,sizeof(account), "Users/%s.ini", PlayerName);
new iniFile = ini_openFile(account);
ini_setInteger(iniFile, "Money", GetPlayerMoney(i));
ini_setInteger(iniFile,"Kills", PlayerInfo[i][Kills]);
ini_setInteger(iniFile,"Deaths", PlayerInfo[i][Deaths]);
ini_setInteger(iniFile,"Skin", GetPlayerSkin(PlayerInfo[i][pSkin]));
GetPlayerHealth(i,PlayerInfo[i][pHeal]);
ini_setFloat(iniFile, "Heal", PlayerInfo[i][pHeal]);
GetPlayerArmour(i,PlayerInfo[i][pArmour]);
ini_setFloat(iniFile, "Armour", PlayerInfo[i][pArmour]);
ini_closeFile(iniFile);
}
return 1;
}
ИД скина в файл сохраняется,но при перезаходе все равно скин стандартный.
#46
Отправлено 24 июля 2012 - 19:26
cyxapuk (24 июля 2012 - 19:17) писал:
Помогите,хочу добавить сохранение на скин.
ИД скина в файл сохраняется,но при перезаходе все равно скин стандартный.
public SaveAccounts(playerid)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new PlayerName[MAX_PLAYER_NAME], account[128];
GetPlayerName(i,PlayerName,sizeof(PlayerName));
format(account,sizeof(account), "Users/%s.ini", PlayerName);
new iniFile = ini_openFile(account);
ini_setInteger(iniFile, "Money", GetPlayerMoney(i));
ini_setInteger(iniFile,"Kills", PlayerInfo[i][Kills]);
ini_setInteger(iniFile,"Deaths", PlayerInfo[i][Deaths]);
ini_setInteger(iniFile,"Skin", GetPlayerSkin(PlayerInfo[i][pSkin]));
GetPlayerHealth(i,PlayerInfo[i][pHeal]);
ini_setFloat(iniFile, "Heal", PlayerInfo[i][pHeal]);
GetPlayerArmour(i,PlayerInfo[i][pArmour]);
ini_setFloat(iniFile, "Armour", PlayerInfo[i][pArmour]);
ini_closeFile(iniFile);
}
return 1;
}
ИД скина в файл сохраняется,но при перезаходе все равно скин стандартный.
а ты в onplayerlogin или где у тебя идет загрузка аккаунта добавил такую же строчку?
#47
Отправлено 24 июля 2012 - 19:28
ini_getString(iniFile, "??????",password); // ?????? ?????? ????????.
if(!strcmp(inputtext, password, true))
{
ini_getInteger(iniFile, "Money", PlayerInfo[playerid][pMoney]); // ?????????? ?????? ? ??????????
ini_getFloat(iniFile, "Heal", PlayerInfo[playerid][pHeal]);
ini_getFloat(iniFile, "Armour", PlayerInfo[playerid][pArmour]);
ini_getInteger(iniFile,"Kills", PlayerInfo[playerid][Kills]);
ini_getInteger(iniFile,"Deaths", PlayerInfo[playerid][Deaths]);
ini_getInteger(iniFile,"Skin", PlayerInfo[playerid][pSkin]);
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
SetPlayerHealth(playerid, PlayerInfo[playerid][pHeal]);
SetPlayerArmour(playerid, PlayerInfo[playerid][pArmour]);
GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
ini_closeFile(iniFile);
new iniFile = ini_createFile(account); //??????? ???
if(iniFile < 0) ini_openFile (account); //???? ???? ??????, ??
{
ini_setString(iniFile,"??????",inputtext); //??????
ini_setInteger(iniFile, "Money", 5000); // ??????? ???? ???????? ? ???-??? ????? 5000
ini_setFloat(iniFile, "Heal", 100.0); // ??????? ???? ???????? ? ???-??? ????????
ini_setFloat(iniFile, "Armour", 100.0); // ??????? ???? ???????? ? ???-??? ?????
ini_setInteger(iniFile, "Kills", 0); // ?? ??? ????????
ini_setInteger(iniFile, "Deaths", 0); // ??????
ini_setInteger(iniFile, "Skin", 3); //????
ini_closeFile(iniFile); //??????? ????
Да все сделал
#50
Отправлено 24 июля 2012 - 20:07
В общем ид скина в файл сохраняется,но выгружаться от туда не хочет.
мм попадробнее.
У меня же стоит сохранение на скин.И скин в файл сохраняется.
Он при авторизации должен новый выдавать,но не выдает.
Cliffka (24 июля 2012 - 20:02) писал:
В SetSpawnInfo или OnPlayerSpawn кидай смену скина
мм попадробнее.
У меня же стоит сохранение на скин.И скин в файл сохраняется.
Он при авторизации должен новый выдавать,но не выдает.
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
Вход
Регистрация
Помощь










