Перейти к содержанию
Авторизация  
Marvellous

Статистика Администратора

Рекомендуемые сообщения

Marvellous

Пользователи cr-mp помогите с данной проблемой!

Я делал статистику ДАННУЮ и у меня почему то ерроры!

P:\??? ??????\??? ???\gamemodes\cream1.2.pwn(7174) : error 017: undefined symbol "playerid"
P:\??? ??????\??? ???\gamemodes\cream1.2.pwn(7175) : error 017: undefined symbol "playerid"
P:\??? ??????\??? ???\gamemodes\cream1.2.pwn(7176) : error 017: undefined symbol "playerid"
P:\??? ??????\??? ???\gamemodes\cream1.2.pwn(7177) : error 017: undefined symbol "playerid"
P:\??? ??????\??? ???\gamemodes\cream1.2.pwn(7178) : error 017: undefined symbol "playerid"
P:\??? ??????\??? ???\gamemodes\cream1.2.pwn(7179) : error 017: undefined symbol "playerid"
P:\??? ??????\??? ???\gamemodes\cream1.2.pwn(7186) : error 017: undefined symbol "playerid"
P:\??? ??????\??? ???\gamemodes\cream1.2.pwn(7187) : error 017: undefined symbol "playerid"
P:\??? ??????\??? ???\gamemodes\cream1.2.pwn(7188) : error 017: undefined symbol "playerid"
P:\??? ??????\??? ???\gamemodes\cream1.2.pwn(7189) : error 017: undefined symbol "playerid"
P:\??? ??????\??? ???\gamemodes\cream1.2.pwn(7190) : error 017: undefined symbol "playerid"
P:\??? ??????\??? ???\gamemodes\cream1.2.pwn(7191) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


12 Errors.

на данные строки

    ini_setInteger(iniFile,"pPayDayAdmin",Account[playerid][pPayDayAdmin]);
    ini_setInteger(iniFile,"pAreport",Account[playerid][pAreport]);
    ini_setInteger(iniFile,"pAban",Account[playerid][pAban]);
    ini_setInteger(iniFile,"pAwarn",Account[playerid][pAwarn]);
    ini_setInteger(iniFile,"pAkick",Account[playerid][pAkick]);
    ini_setInteger(iniFile,"pAmute",Account[playerid][pAmute]);
и

    ini_getInteger(iniFile,"pPayDayAdmin",Account[playerid][pPayDayAdmin]);
    ini_getInteger(iniFile,"pAreport",Account[playerid][pAreport]);
    ini_getInteger(iniFile,"pAban",Account[playerid][pAban]);
    ini_getInteger(iniFile,"pAwarn",Account[playerid][pAwarn]);
    ini_getInteger(iniFile,"pAkick",Account[playerid][pAkick]);
    ini_getInteger(iniFile,"pAmute",Account[playerid][pAmute]);

Вот весь код

LoadStuff()
{
    new iniFile = ini_openFile("stuff.ini");
    ini_getInteger(iniFile,"OWNABLECARS",OWNABLECARS);
    ini_getInteger(iniFile,"biztax",biztax);
    ini_getInteger(iniFile,"Tax",Tax);
    ini_getInteger(iniFile,"Bonus",bonus);
    ini_setInteger(iniFile,"pPayDayAdmin",Account[playerid][pPayDayAdmin]);
    ini_setInteger(iniFile,"pAreport",Account[playerid][pAreport]);
    ini_setInteger(iniFile,"pAban",Account[playerid][pAban]);
    ini_setInteger(iniFile,"pAwarn",Account[playerid][pAwarn]);
    ini_setInteger(iniFile,"pAkick",Account[playerid][pAkick]);
    ini_setInteger(iniFile,"pAmute",Account[playerid][pAmute]);
    ini_closeFile(iniFile);
}
SaveStuff(name[],value)
{
    new iniFile = ini_openFile("stuff.ini");
    ini_setInteger(iniFile,name,value);
    ini_getInteger(iniFile,"pPayDayAdmin",Account[playerid][pPayDayAdmin]);
    ini_getInteger(iniFile,"pAreport",Account[playerid][pAreport]);
    ini_getInteger(iniFile,"pAban",Account[playerid][pAban]);
    ini_getInteger(iniFile,"pAwarn",Account[playerid][pAwarn]);
    ini_getInteger(iniFile,"pAkick",Account[playerid][pAkick]);
    ini_getInteger(iniFile,"pAmute",Account[playerid][pAmute]);
}

Почему так и не пойму! Искал решения в той теме,но там нет ни чего подходящего!

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
SCRIPTMAN

У тебя мод mySQL?

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
Marvellous

,Нет! 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
SCRIPTMAN

@Marvellous,Дай мне строчку. Например введи pLevel и дай любую строчку, где есть pInfo, PlayerInfo. а лучше несколько.

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
Marvellous

,Вот думаю в самый раз подойдет

if(newcar >= Moto[0] && newcar <= Moto[1])
		{
		    if(Account[playerid][pLevel] == 1 && Account[playerid][pExp] <= 3)
		    {
		    }
		    else
		    {
				SCM(playerid,COLOR_GREY,"Велосипеды только для новичков.");
				RemovePlayerFromVehicle(playerid);
				TogglePlayerControllable(playerid, 1);
		    }
		} 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
SCRIPTMAN

 

 


ini_set
хм. Дай мне те строки, которые у тебя отвечают за создание информации об игроке, скажем так. типа ini_и так далее.

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
Marvellous

,Надеюсь ты про это говоришь

PUBLIC: OnPlayerLogin(playerid,password[])
{
	new s[250];
	format(s, 50, "Accounts/%s.ini", gn(playerid));
	new File: UserFile = fopen(s, io_read);
	if(UserFile)
	{
	    new PassData[256], keytmp[256], valtmp[256];
	    fread(UserFile, PassData, sizeof(PassData));
	    keytmp = ini_GetKey(PassData);
	    if(strcmp(keytmp, "Key", true) == 0)
		{
			valtmp = ini_GetValue(PassData);
			strmid(Account[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
		}
		if(strcmp(Account[playerid][pKey],password, true) == 0)
		{
				new key[256], val[256];
				new Data[256];
				while(fread(UserFile, Data, sizeof(Data)))
				{
					key = ini_GetKey( Data );
					if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pLevel] = strval( val ); }
			    	if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pAdmin] = strval( val ); }
			        if( strcmp( key , "DonateRank" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pDonateRank] = strval( val ); }
			        if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pConnectTime] = strval( val ); }
			        if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pReg] = strval( val ); }
			        if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pSex] = strval( val ); }
			        if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pAge] = strval( val ); }
					if( strcmp( key , "Wanted" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pWanted] = strval( val ); }
			        if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pExp] = strval( val ); }
			        if( strcmp( key , "Roliki" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pRoliki] = strval( val ); }
			        if( strcmp( key , "Udochka" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pUdochka] = strval( val ); }
			        if( strcmp( key , "UnworkingTime" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pUnworkingTime] = strval( val ); }
			        if( strcmp( key , "RabotalLopatoy" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pRabotalLopatoy] = strval( val ); }
			        if( strcmp( key , "BankAcc" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pBankChet] = strval( val ); }
			        if( strcmp( key , "BankPass" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pBankPass] = strval( val ); }
			        if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pMoney] = strval( val ); }
			        if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pBankMoney] = strval( val ); }
			        if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pKills] = strval( val ); }
			        if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pDeaths] = strval( val ); }
			        if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pArrested] = strval( val ); }
			        if( strcmp( key , "WantedDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pWantedDeaths] = strval( val ); }
			        if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pPhoneBook] = strval( val ); }
			        if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pFishes] = strval( val ); }
			        if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pBiggestFish] = strval( val ); }
			        if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pJob] = strval( val ); }
			        if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pPayCheck] = strval( val ); }
			        if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pJailed] = strval( val ); }
			        if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pJailTime] = strval( val ); }
			        if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pMats] = strval( val ); }
			        if( strcmp( key , "Drugs" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pDrugs] = strval( val ); }
			        if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pLeader] = strval( val ); }
			        if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pMember] = strval( val ); }
			        if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pRank] = strval( val ); }
			        if( strcmp( key , "Race" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pRace] = strval( val ); }
			        if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pMechSkill] = strval( val ); }
			        if( strcmp( key , "JackSkill" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pJackSkill] = strval( val ); }
			        if( strcmp( key , "DrugsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pDrugsSkill] = strval( val ); }
			        if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pFishSkill] = strval( val ); }
			        if( strcmp( key , "pHealth" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pHealth] = floatstr( val ); }
			        if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pInt] = strval( val ); }
		         	if( strcmp( key , "Virtual" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pVirtual] = strval( val ); }
			        if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pSkin] = strval( val ); }
			        if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pPnumber] = strval( val ); }
			        if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pHouseKey] = strval( val ); }
			        if( strcmp( key , "Apart" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pPapptkey] = strval( val ); }
			        if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pBizKey] = strval( val ); }
			        if( strcmp( key , "Pos_x" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pPos][0] = floatstr( val ); }
			        if( strcmp( key , "Pos_y" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pPos][1]= floatstr( val ); }
			        if( strcmp( key , "Pos_z" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pPos][2] = floatstr( val ); }
			        if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pCarLic] = strval( val ); }
			        if( strcmp( key , "MotoLic" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pMotoLic] = strval( val ); }
			        if( strcmp( key , "TruckLic" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pTruckLic] = strval( val ); }
			        if( strcmp( key , "BusLic" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pBusLic] = strval( val ); }
                    if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pFlyLic] = strval( val ); }
					if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pBoatLic] = strval( val ); }
			        if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pFishLic] = strval( val ); }
			        if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pGunLic] = strval( val ); }
                    if( strcmp( key , "GunLicAllow" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pGunLicAllow] = strval( val ); }
  			        if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pPayDay] = strval( val ); }
			        if( strcmp( key , "DrugPerk" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pDrugPerk] = strval( val ); }
			        if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pTut] = strval( val ); }
			        if( strcmp( key , "Fuel" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pFuel] = strval( val ); }
			        if( strcmp( key , "Rope" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pRope] = strval( val ); }
			        if( strcmp( key , "SK" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pSK] = strval( val ); }
			        if( strcmp( key , "SD" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pSD] = strval( val ); }
			        if( strcmp( key , "Sigs" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pSigs] = strval( val ); }
			        if( strcmp( key , "BageNum" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pBageNum] = strval( val ); }
			        if( strcmp( key , "Zoloto" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pZoloto] = strval( val ); }
			        if( strcmp( key , "GPS" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pGPS] = strval( val ); }
                    if( strcmp( key , "NeSdal" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pNeSdal] = strval( val ); }
					if( strcmp( key , "Radio" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pRadio] = strval( val ); }
                    if( strcmp( key , "MuteTime" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pMuteTime] = strval( val ); }
                    if( strcmp( key , "BoxFightStyle" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pBoxing] = strval( val ); }
                    if( strcmp( key , "KunfuFightStyle" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pKunfu] = strval( val ); }
                    if( strcmp( key , "KneeheadFightStyle" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pKneehead] = strval( val ); }
                    if( strcmp( key , "GrabkickFightStyle" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pGrabkick] = strval( val ); }
                    if( strcmp( key , "ElbowFightStyle" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pElbow] = strval( val ); }
                    if( strcmp( key , "WantedTime" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pWantedTime] = strval( val ); }
                    if( strcmp( key , "ArmBil" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pArmBil] = strval( val ); }
                    if( strcmp( key , "Medic" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pMedic] = strval( val ); }
                    if( strcmp( key , "GymnaseSkill" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pGymnaseSkill] = strval( val ); }
                    if( strcmp( key , "Kanistra" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pKanistra] = strval( val ); }
                    if( strcmp( key , "Moderator" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pModer] = strval( val ); }
                    if( strcmp( key , "ContractTime" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pContractTime] = strval( val ); }
                    if( strcmp( key , "MedCart" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pMedCart] = strval( val ); }
                    if( strcmp( key , "Durka" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pDurka] = strval( val ); }
                    if( strcmp( key , "DurkaTime" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pDurkaTime] = strval( val ); }
                    if( strcmp( key , "Min" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pMin] = strval( val ); }
                    if( strcmp( key , "Vigovor" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pVigovor] = strval( val ); }
                    if( strcmp( key , "RStyle" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pRStyle] = strval( val ); }
                    if( strcmp( key , "Kanal" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pKanal] = strval( val ); }
                    if( strcmp( key , "Garage" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pGarage] = strval( val ); }
                    for(new i; i < 11; i++)
					{
					new str[64];
					format(str, 64, "Gun%d", i);
					if( strcmp( key , str , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pGun][i] = strval( val ); }
					format(str, 64, "Ammo%d", i);
					if( strcmp( key , str , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pAmmo][i] = strval( val ); }
					}
					if( strcmp( key , "Bonus" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pBonus] = strval( val ); }
					if( strcmp( key , "Spawn" , true ) == 0 ) { val = ini_GetValue( Data ); Account[playerid][pSpawn] = strval( val ); }

 

 

Изменено пользователем Marvellous

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
SCRIPTMAN

@Marvellous,Кинь мне регистрацию. Создание данных аккаунта мне нужно! 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
Web

В:

   PUBLIC: OnPlayerRegister(playerid, password[]) 
   PUBLIC: SavePlayer(playerid) 
   PUBLIC: OnPlayerLogin(playerid,password[])

аналогично добавить переменные и все.

  • Like 1

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
Marvellous

,Спасибо,только что добавил,но потом только увидел твое сообщение! Тема закрыта! 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
Гость
Эта тема закрыта для публикации ответов.
Авторизация  

  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

×

Важная информация

Мы разместили cookie-файлы на ваше устройство, чтобы помочь сделать этот сайт лучше. Вы можете изменить свои настройки cookie-файлов, или продолжить без изменения настроек.