 |
|
 |
|
|
|
Последние Файлы GTA 4 |
Последние Файлы GTA-MP |
Реклама |
|
|
|
|
|
Задать вопрос по SAMP (База знаний)
| |
| FireLine | Дата: Четверг, 10.11.2011, 19:23 | Сообщение # 5866 |
|
Уверенный в себе
Группа:
Пользователи
Сообщений: 171
Награды: 3
Город: UKR
Репутация: 76
Замечания: 60%
Статус: 
| x-team,
Ко всем new
new zavodis[MAX_PLAYERS];
И команду добавляешь
Code else if (strcmp("/команда", cmdtext, true) == 0) { if(zavodis[playerid] == 0) { if(GetPlayerVehicleID(playerid) != INVALID_VEHICLE_ID) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid) ,VEHICLE_PARAMS_ON,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective); zavodis[playerid] = 1; } } } else if(zavodis[playerid] == 1) { if(GetPlayerVehicleID(playerid) != INVALID_VEHICLE_ID) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid),VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective); zavodis[playerid] = 0; } } } return 1; }
FireLine>>Aler
|
| |
|
|
| Молорище | Дата: Четверг, 10.11.2011, 19:50 | Сообщение # 5867 |
|
Молор
Группа:
Продвинутые
Сообщений: 427
Награды: 11
Город: Санкт Петербург
Замечания: 0%
Статус: 
| Ребят, помогите. До меня не доходит, что тут не так, но он пишет: F:\GTA San Andreas\Ñåðâåð\gamemodes\TBS.pwn(947) : warning 213: tag mismatch F:\GTA San Andreas\Ñåðâåð\gamemodes\TBS.pwn(948) : warning 213: tag mismatch F:\GTA San Andreas\Ñåðâåð\gamemodes\TBS.pwn(949) : warning 213: tag mismatch
именно из за этого: X = X + (Z * floatsin(-Round, 1)); Y = Y + (Z * floatcos(-Round, 1));
Что тут не так?
Мне нечего делать.
|
| |
|
|
| Dmitry_Podtiopa | Дата: Четверг, 10.11.2011, 21:05 | Сообщение # 5868 |
|
Новенький
Группа:
Пользователи
Сообщений: 5
Награды: 0
Город: Fastov
Репутация: 0
Замечания: 0%
Статус: 
| смотрите есть мод, личный в нём такая фигня регистрация-всё норм выходит заходит в игру но потом иногда заходишь а у тебя опять регистрация, после рр всё норм что делать? и так много рас и у всех... дома кары не слетают а именно ключи и тд... [cut noguest=Код:]public OnPlayerLogin(playerid,password[]) { new tmp2[256]; new string2[64]; new pass[256]; new playername2[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername2, sizeof(playername2)); format(string2, sizeof(string2), "nick/%s.ini", playername2); new File = iniOpen(string2); if(File <0) { ABroadCast(COLOR_LIGHTRED,playername2,1); } if(!File) { iniGet(File,"Key",pass); iniGetInt(File,"Level",PlayerInfo[playerid][pLevel]); iniGetInt(File,"AdminLevel",PlayerInfo[playerid][pAdmin]); iniGetInt(File,"HelperLevel",PlayerInfo[playerid][pHelper]); iniGetInt(File,"DonateRank",PlayerInfo[playerid][pDonateRank]); iniGetInt(File,"UpgradePoints",PlayerInfo[playerid][gPupgrade]); iniGetInt(File,"ConnectTime",PlayerInfo[playerid][pConnectTime]); iniGetInt(File,"Registered",PlayerInfo[playerid][pReg]); iniGetInt(File,"Sex",PlayerInfo[playerid][pSex]); iniGetInt(File,"Age",PlayerInfo[playerid][pAge]); iniGetInt(File,"Origin",PlayerInfo[playerid][pOrigin]); iniGetInt(File,"CK",PlayerInfo[playerid][pCK]); iniGetInt(File,"Muted",PlayerInfo[playerid][pMuted]); iniGetInt(File,"Respect",PlayerInfo[playerid][pExp]); iniGetInt(File,"Money",PlayerInfo[playerid][pCash]); iniGetInt(File,"Bank",PlayerInfo[playerid][pAccount]); iniGetInt(File,"Crimes",PlayerInfo[playerid][pCrimes]); iniGetInt(File,"Kills",PlayerInfo[playerid][pKills]); iniGetInt(File,"Deaths",PlayerInfo[playerid][pDeaths]); iniGetInt(File,"Arrested",PlayerInfo[playerid][pArrested]); iniGetInt(File,"WantedDeaths",PlayerInfo[playerid][pWantedDeaths]); iniGetInt(File,"Phonebook",PlayerInfo[playerid][pPhoneBook]); iniGetInt(File,"Kpk",PlayerInfo[playerid][pKpk]); iniGetInt(File,"LottoNr",PlayerInfo[playerid][pLottoNr]); iniGetInt(File,"Fishes",PlayerInfo[playerid][pFishes]); iniGetInt(File,"BiggestFish",PlayerInfo[playerid][pBiggestFish]); iniGetInt(File,"Job",PlayerInfo[playerid][pJob]); iniGetInt(File,"Paycheck",PlayerInfo[playerid][pPayCheck]); iniGetInt(File,"HeadValue",PlayerInfo[playerid][pHeadValue]); iniGetInt(File,"Jailed",PlayerInfo[playerid][pJailed]); iniGetInt(File,"JailTime",PlayerInfo[playerid][pJailTime]); iniGetInt(File,"Materials",PlayerInfo[playerid][pMats]); iniGetInt(File,"Drugs",PlayerInfo[playerid][pDrugs]); iniGetInt(File,"Leader",PlayerInfo[playerid][pLeader]); iniGetInt(File,"Member",PlayerInfo[playerid][pMember]); iniGetInt(File,"FMember",PlayerInfo[playerid][pFMember]); iniGetInt(File,"Rank",PlayerInfo[playerid][pRank]); iniGetInt(File,"Zvan",PlayerInfo[playerid][pZvan]); iniGetInt(File,"Char",PlayerInfo[playerid][pChar]); iniGetInt(File,"ContractTime",PlayerInfo[playerid][pContractTime]); iniGetInt(File,"DetSkill",PlayerInfo[playerid][pDetSkill]); iniGetInt(File,"SexSkill",PlayerInfo[playerid][pSexSkill]); iniGetInt(File,"BoxSkill",PlayerInfo[playerid][pBoxSkill]); iniGetInt(File,"LawSkill",PlayerInfo[playerid][pLawSkill]); iniGetInt(File,"MechSkill",PlayerInfo[playerid][pMechSkill]); iniGetInt(File,"JackSkill",PlayerInfo[playerid][pJackSkill]); iniGetInt(File,"VorSkill",PlayerInfo[playerid][pVorSkill]); iniGetInt(File,"CarSkill",PlayerInfo[playerid][pCarSkill]); iniGetInt(File,"NewsSkill",PlayerInfo[playerid][pNewsSkill]); iniGetInt(File,"DrugsSkill",PlayerInfo[playerid][pDrugsSkill]); iniGetInt(File,"CookSkill",PlayerInfo[playerid][pCookSkill]); iniGetInt(File,"FishSkill",PlayerInfo[playerid][pFishSkill]); iniGetFloat(File,"pSHealth",PlayerInfo[playerid][pSHealth]); iniGetFloat(File,"pHealth",PlayerInfo[playerid][pHealth]); iniGetInt(File,"Int",PlayerInfo[playerid][pInt]); iniGetInt(File,"Local",PlayerInfo[playerid][pLocal]); iniGetInt(File,"Team",PlayerInfo[playerid][pTeam]); iniGetInt(File,"Model",PlayerInfo[playerid][pModel]); iniGetInt(File,"PhoneNr",PlayerInfo[playerid][pPnumber]); iniGetInt(File,"House",PlayerInfo[playerid][pPhousekey]); iniGetInt(File,"Bizz",PlayerInfo[playerid][pPbiskey]); iniGetFloat(File,"Pos_x",PlayerInfo[playerid][pPos_x]); iniGetFloat(File,"Pos_y",PlayerInfo[playerid][pPos_y]); iniGetFloat(File,"Pos_z",PlayerInfo[playerid][pPos_z]); iniGetInt(File,"CarLic",PlayerInfo[playerid][pCarLic]); iniGetInt(File,"MotoLic",PlayerInfo[playerid][pMotoLic]); iniGetInt(File,"BusLic",PlayerInfo[playerid][pBusLic]); iniGetInt(File,"GruzLic",PlayerInfo[playerid][pGruzLic]); iniGetInt(File,"FlyLic",PlayerInfo[playerid][pFlyLic]); iniGetInt(File,"BoatLic",PlayerInfo[playerid][pBoatLic]); iniGetInt(File,"FishLic",PlayerInfo[playerid][pFishLic]); iniGetInt(File,"GunLic",PlayerInfo[playerid][pGunLic]); iniGetInt(File,"Pasport",PlayerInfo[playerid][pPasport]); iniGetInt(File,"Gun1",PlayerInfo[playerid][pGun1]); iniGetInt(File,"Gun2",PlayerInfo[playerid][pGun2]); iniGetInt(File,"Gun3",PlayerInfo[playerid][pGun3]); iniGetInt(File,"Gun4",PlayerInfo[playerid][pGun4]); iniGetInt(File,"Ammo1",PlayerInfo[playerid][pAmmo1]); iniGetInt(File,"Ammo2",PlayerInfo[playerid][pAmmo2]); iniGetInt(File,"Ammo3",PlayerInfo[playerid][pAmmo3]); iniGetInt(File,"Ammo4",PlayerInfo[playerid][pAmmo4]); iniGetInt(File,"CarTime",PlayerInfo[playerid][pCarTime]); iniGetInt(File,"VorTime",PlayerInfo[playerid][pVorTime]); iniGetInt(File,"PayDay",PlayerInfo[playerid][pPayDay]); iniGetInt(File,"PayDayHad",PlayerInfo[playerid][pPayDayHad]); iniGetInt(File,"CDPlayer",PlayerInfo[playerid][pCDPlayer]); iniGetInt(File,"Wins",PlayerInfo[playerid][pWins]); iniGetInt(File,"Loses",PlayerInfo[playerid][pLoses]); iniGetInt(File,"AlcoholPerk",PlayerInfo[playerid][pAlcoholPerk]); iniGetInt(File,"DrugPerk",PlayerInfo[playerid][pDrugPerk]); iniGetInt(File,"MiserPerk",PlayerInfo[playerid][pMiserPerk]); iniGetInt(File,"PainPerk",PlayerInfo[playerid][pPainPerk]); iniGetInt(File,"TraderPerk",PlayerInfo[playerid][pTraderPerk]); iniGetInt(File,"Tutorial",PlayerInfo[playerid][pTut]); iniGetInt(File,"MuteTime",PlayerInfo[playerid][pMuteTime]); iniGetInt(File,"AutoKey",PlayerInfo[playerid][pAutoKey]); iniGetInt(File,"Warnings",PlayerInfo[playerid][pWarns]); iniGetInt(File,"Adjustable",PlayerInfo[playerid][pAdjustable]); iniGetInt(File,"Fuel",PlayerInfo[playerid][pFuel]); iniSetInt(File,"Zakonop",PlayerInfo[playerid][pZakonp]); iniGetInt(File,"CarKey3",PlayerInfo[playerid][pCarKey3]); iniGetInt(File,"CarKey2",PlayerInfo[playerid][pCarKey2]); iniGetInt(File,"CarKey",PlayerInfo[playerid][pCarKey]); iniGetInt(File,"Ord",PlayerInfo[playerid][pOrd]); iniGetInt(File,"Sh",PlayerInfo[playerid][pSh]); iniGetInt(File,"Mask",PlayerInfo[playerid][pMask]); iniGetInt(File,"Balance",PlayerInfo[playerid][pBalance]); iniGetInt(File,"MaskSkill",PlayerInfo[playerid][pMaskSkill]); iniGetInt(File,"Pass",PlayerInfo[playerid][pPass]); iniGetInt(File,"Married",PlayerInfo[playerid][pMarried]); iniGetInt(File,"Inet",PlayerInfo[playerid][pInet]); iniGetInt(File,"Vaip",PlayerInfo[playerid][pVaip]); new ptemp[80]; iniGet(File,"MarriedTo",ptemp); strmid(PlayerInfo[playerid][pMarriedTo], ptemp, 0, strlen(ptemp), 255); iniClose(File); } PlayerInfo[playerid][pAdjustable] = 0; ResetPlayerMoney(playerid); ConsumingMoney[playerid] = 1; NormMoney[playerid] = 2; PlayerInfo[playerid][pMuteTime] = 0; PlayerInfo[playerid][pMuted] = 0; AntiMoney[playerid] = AntiMoney[playerid] + PlayerInfo[playerid][pCash]; GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]); CurrentMoney[playerid] = PlayerInfo[playerid][pCash]; if(PlayerInfo[playerid][pReg] == 0) { PlayerInfo[playerid][pLevel] = 1; PlayerInfo[playerid][pSHealth] = 0.0; PlayerInfo[playerid][pHealth] = 50.0; PlayerInfo[playerid][pPos_x] = 1190.9117; PlayerInfo[playerid][pPos_y] = -1655.5339; PlayerInfo[playerid][pPos_z] = 13.8698; PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pMotoLic] = 0; PlayerInfo[playerid][pCarLic] = 0; PlayerInfo[playerid][pGunLic] = 0; PlayerInfo[playerid][pCarLic] = 0; PlayerInfo[playerid][pFlyLic] = 0; PlayerInfo[playerid][pBoatLic] = 0; PlayerInfo[playerid][pFishLic] = 0; PlayerInfo[playerid][pMotoLic] = 0; PlayerInfo[playerid][pBusLic] = 0; PlayerInfo[playerid][pGruzLic] = 0; PlayerInfo[playerid][pLocal] = 255; PlayerInfo[playerid][pTeam] = 3; PlayerInfo[playerid][pModel] = 7; new randphone = 100000 + random(899999);//minimum 1000 max 9999 //giving one at the start PlayerInfo[playerid][pPnumber] = randphone; PlayerInfo[playerid][pPhousekey] = 255; PlayerInfo[playerid][pPbiskey] = 255; PlayerInfo[playerid][pAccount] = 0; PlayerInfo[playerid][pReg] = 1; NormMoney[playerid] = 2; AntiMoney[playerid] = AntiMoney[playerid] + 10000; GivePlayerMoney(playerid, 10000); PlayerInfo[playerid][pPos_x] = 239.8503;// ñíîâà êîîðäèíàòû ïåðâîãî ïîÿâëåíèÿ PlayerInfo[playerid][pPos_y] = 57.5682; PlayerInfo[playerid][pPos_z] = 2.5167; } //------------------------------------------------ public OnPlayerRegister(playerid, password[]) { if(IsPlayerConnected(playerid)) { new string3[32]; new playername3[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername3, sizeof(playername3)); format(string3, sizeof(string3), "nick/%s.ini", playername3); new File = iniOpen(string3); if(!File) { iniSet(File,"Key",MD5_Hash(password)); PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid); iniSetInt(File,"Level",PlayerInfo[playerid][pLevel]); iniSetInt(File,"AdminLevel",PlayerInfo[playerid][pAdmin]); iniSetInt(File,"HelperLevel",PlayerInfo[playerid][pHelper]); iniSetInt(File,"DonateRank",PlayerInfo[playerid][pDonateRank]); iniSetInt(File,"UpgradePoints",PlayerInfo[playerid][gPupgrade]); iniSetInt(File,"ConnectTime",PlayerInfo[playerid][pConnectTime]); iniSetInt(File,"Registered",PlayerInfo[playerid][pReg]); iniSetInt(File,"Sex",PlayerInfo[playerid][pSex]); iniSetInt(File,"Age",PlayerInfo[playerid][pAge]); iniSetInt(File,"Origin",PlayerInfo[playerid][pOrigin]); iniSetInt(File,"CK",PlayerInfo[playerid][pCK]); iniSetInt(File,"Muted",PlayerInfo[playerid][pMuted]); iniSetInt(File,"Respect",PlayerInfo[playerid][pExp]); iniSetInt(File,"Money",PlayerInfo[playerid][pCash]); iniSetInt(File,"Bank",PlayerInfo[playerid][pAccount]); iniSetInt(File,"Crimes",PlayerInfo[playerid][pCrimes]); iniSetInt(File,"Kills",PlayerInfo[playerid][pKills]); iniSetInt(File,"Deaths",PlayerInfo[playerid][pDeaths]); iniSetInt(File,"Arrested",PlayerInfo[playerid][pArrested]); iniSetInt(File,"WantedDeaths",PlayerInfo[playerid][pWantedDeaths]); iniSetInt(File,"Phonebook",PlayerInfo[playerid][pPhoneBook]); iniSetInt(File,"Kpk",PlayerInfo[playerid][pKpk]); iniSetInt(File,"LottoNr",PlayerInfo[playerid][pLottoNr]); iniSetInt(File,"Fishes",PlayerInfo[playerid][pFishes]); iniSetInt(File,"BiggestFish",PlayerInfo[playerid][pBiggestFish]); iniSetInt(File,"Job",PlayerInfo[playerid][pJob]); iniSetInt(File,"Paycheck",PlayerInfo[playerid][pPayCheck]); iniSetInt(File,"HeadValue",PlayerInfo[playerid][pHeadValue]); iniSetInt(File,"Jailed",PlayerInfo[playerid][pJailed]); iniSetInt(File,"JailTime",PlayerInfo[playerid][pJailTime]); iniSetInt(File,"Materials",PlayerInfo[playerid][pMats]); iniSetInt(File,"Drugs",PlayerInfo[playerid][pDrugs]); iniSetInt(File,"Leader",PlayerInfo[playerid][pLeader]); iniSetInt(File,"Member",PlayerInfo[playerid][pMember]); iniSetInt(File,"FMember",PlayerInfo[playerid][pFMember]); iniSetInt(File,"Rank",PlayerInfo[playerid][pRank]); iniSetInt(File,"Zvan",PlayerInfo[playerid][pZvan]); iniSetInt(File,"Char",PlayerInfo[playerid][pChar]); iniSetInt(File,"ContractTime",PlayerInfo[playerid][pContractTime]); iniSetInt(File,"DetSkill",PlayerInfo[playerid][pDetSkill]); iniSetInt(File,"SexSkill",PlayerInfo[playerid][pSexSkill]); iniSetInt(File,"BoxSkill",PlayerInfo[playerid][pBoxSkill]); iniSetInt(File,"LawSkill",PlayerInfo[playerid][pLawSkill]); iniSetInt(File,"MechSkill",PlayerInfo[playerid][pMechSkill]); iniSetInt(File,"JackSkill",PlayerInfo[playerid][pJackSkill]); iniSetInt(File,"VorSkill",PlayerInfo[playerid][pVorSkill]); iniSetInt(File,"CarSkill",PlayerInfo[playerid][pCarSkill]); iniSetInt(File,"NewsSkill",PlayerInfo[playerid][pNewsSkill]); iniSetInt(File,"DrugsSkill",PlayerInfo[playerid][pDrugsSkill]); iniSetInt(File,"CookSkill",PlayerInfo[playerid][pCookSkill]); iniSetInt(File,"FishSkill",PlayerInfo[playerid][pFishSkill]); iniSetFloat(File,"pSHealth",PlayerInfo[playerid][pSHealth]); GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]); iniSetFloat(File,"pHealth",PlayerInfo[playerid][pHealth]); iniSetInt(File,"Int",PlayerInfo[playerid][pInt]); iniSetInt(File,"Local",PlayerInfo[playerid][pLocal]); iniSetInt(File,"Team",PlayerInfo[playerid][pTeam]); iniSetInt(File,"Model",PlayerInfo[playerid][pModel]); iniSetInt(File,"PhoneNr",PlayerInfo[playerid][pPnumber]); iniSetInt(File,"House",PlayerInfo[playerid][pPhousekey]); iniSetInt(File,"Bizz",PlayerInfo[playerid][pPbiskey]); if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0)) { PlayerInfo[playerid][pPos_x] = 1684.9; PlayerInfo[playerid][pPos_y] = -2244.5; PlayerInfo[playerid][pPos_z] = 13.5; } if(Spectate[playerid] != 255) { PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx]; PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy]; PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz]; PlayerInfo[playerid][pInt] = Unspec[playerid][sPint]; PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal]; } iniSetFloat(File,"Pos_x",PlayerInfo[playerid][pPos_x]); iniSetFloat(File,"Pos_y",PlayerInfo[playerid][pPos_y]); iniSetFloat(File,"Pos_z",PlayerInfo[playerid][pPos_z]); iniSetInt(File,"CarLic",PlayerInfo[playerid][pCarLic]); iniSetInt(File,"MotoLic",PlayerInfo[playerid][pMotoLic]); iniSetInt(File,"BusLic",PlayerInfo[playerid][pBusLic]); iniSetInt(File,"GruzLic",PlayerInfo[playerid][pGruzLic]); iniSetInt(File,"FlyLic",PlayerInfo[playerid][pFlyLic]); iniSetInt(File,"BoatLic",PlayerInfo[playerid][pBoatLic]); iniSetInt(File,"FishLic",PlayerInfo[playerid][pFishLic]); iniSetInt(File,"GunLic",PlayerInfo[playerid][pGunLic]); iniSetInt(File,"Pasport",PlayerInfo[playerid][pPasport]); iniSetInt(File,"Gun1",PlayerInfo[playerid][pGun1]); iniSetInt(File,"Gun2",PlayerInfo[playerid][pGun2]); iniSetInt(File,"Gun3",PlayerInfo[playerid][pGun3]); iniSetInt(File,"Gun4",PlayerInfo[playerid][pGun4]); iniSetInt(File,"Ammo1",PlayerInfo[playerid][pAmmo1]); iniSetInt(File,"Ammo2",PlayerInfo[playerid][pAmmo2]); iniSetInt(File,"Ammo3",PlayerInfo[playerid][pAmmo3]); iniSetInt(File,"Ammo4",PlayerInfo[playerid][pAmmo4]); iniSetInt(File,"CarTime",PlayerInfo[playerid][pCarTime]); iniSetInt(File,"VorTime",PlayerInfo[playerid][pVorTime]); iniSetInt(File,"PayDay",PlayerInfo[playerid][pPayDay]); iniSetInt(File,"PayDayHad",PlayerInfo[playerid][pPayDayHad]); iniSetInt(File,"CDPlayer",PlayerInfo[playerid][pCDPlayer]); iniSetInt(File,"Wins",PlayerInfo[playerid][pWins]); iniSetInt(File,"Loses",PlayerInfo[playerid][pLoses]); iniSetInt(File,"AlcoholPerk",PlayerInfo[playerid][pAlcoholPerk]); iniSetInt(File,"DrugPerk",PlayerInfo[playerid][pDrugPerk]); iniSetInt(File,"MiserPerk",PlayerInfo[playerid][pMiserPerk]); iniSetInt(File,"PainPerk",PlayerInfo[playerid][pPainPerk]); iniSetInt(File,"TraderPerk",PlayerInfo[playerid][pTraderPerk]); iniSetInt(File,"Tutorial",0); iniSetInt(File,"MuteTime",PlayerInfo[playerid][pMuteTime]); iniSetInt(File,"AutoKey",PlayerInfo[playerid][pAutoKey]); iniSetInt(File,"Warnings",PlayerInfo[playerid][pWarns]); iniSetInt(File,"Adjustable",PlayerInfo[playerid][pAdjustable]); iniSetInt(File,"Fuel",PlayerInfo[playerid][pFuel]); iniSetInt(File,"Zakonop",PlayerInfo[playerid][pZakonp]); iniSetInt(File,"CarKey3",0); iniSetInt(File,"CarKey2",0); iniSetInt(File,"CarKey",0); iniSetInt(File,"Ord",PlayerInfo[playerid][pOrd]); iniSetInt(File,"Pass",0); iniSetInt(File,"Sh",0); iniSetInt(File,"Mask",0); iniSetInt(File,"Balance",100); iniSetInt(File,"MaskSkill",0); iniSetInt(File,"Inet",pInet); iniSetInt(File,"Married",PlayerInfo[playerid][pMarried]); iniSetInt(File,"Vaip",Vaip); new ptemp[80]; format(ptemp,sizeof(ptemp),"%s",PlayerInfo[playerid][pMarriedTo]); iniSet(File,"MarriedTo",ptemp); iniClose(File); SendClientMessage(playerid, 0x33CCFFAA, "Âû çàðåãèñòðèðîâàííû, ìîæåòå âîéòè!"); } } return 1; }
public OnPlayerUpdate_GF(playerid) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid]) { new string3[32]; new playername3[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername3, sizeof(playername3)); format(string3, sizeof(string3), "nick/%s.ini", playername3); new File = iniOpen(string3); if(!File) { // iniSet(File,"Key",PlayerInfo[playerid][pKey]); PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid); iniSetInt(File,"Level",PlayerInfo[playerid][pLevel]); iniSetInt(File,"AdminLevel",PlayerInfo[playerid][pAdmin]); iniSetInt(File,"HelperLevel",PlayerInfo[playerid][pHelper]); iniSetInt(File,"DonateRank",PlayerInfo[playerid][pDonateRank]); iniSetInt(File,"UpgradePoints",PlayerInfo[playerid][gPupgrade]); iniSetInt(File,"ConnectTime",PlayerInfo[playerid][pConnectTime]); iniSetInt(File,"Registered",PlayerInfo[playerid][pReg]); iniSetInt(File,"Sex",PlayerInfo[playerid][pSex]); iniSetInt(File,"Age",PlayerInfo[playerid][pAge]); iniSetInt(File,"Origin",PlayerInfo[playerid][pOrigin]); iniSetInt(File,"CK",PlayerInfo[playerid][pCK]); iniSetInt(File,"Muted",PlayerInfo[playerid][pMuted]); iniSetInt(File,"Respect",PlayerInfo[playerid][pExp]); iniSetInt(File,"Money",PlayerInfo[playerid][pCash]); iniSetInt(File,"Bank",PlayerInfo[playerid][pAccount]); iniSetInt(File,"Crimes",PlayerInfo[playerid][pCrimes]); iniSetInt(File,"Kills",PlayerInfo[playerid][pKills]); iniSetInt(File,"Deaths",PlayerInfo[playerid][pDeaths]); iniSetInt(File,"Arrested",PlayerInfo[playerid][pArrested]); iniSetInt(File,"WantedDeaths",PlayerInfo[playerid][pWantedDeaths]); iniSetInt(File,"Phonebook",PlayerInfo[playerid][pPhoneBook]); iniSetInt(File,"Kpk",PlayerInfo[playerid][pKpk]); iniSetInt(File,"LottoNr",PlayerInfo[playerid][pLottoNr]); iniSetInt(File,"Fishes",PlayerInfo[playerid][pFishes]); iniSetInt(File,"BiggestFish",PlayerInfo[playerid][pBiggestFish]); iniSetInt(File,"Job",PlayerInfo[playerid][pJob]); iniSetInt(File,"Paycheck",PlayerInfo[playerid][pPayCheck]); iniSetInt(File,"HeadValue",PlayerInfo[playerid][pHeadValue]); iniSetInt(File,"Jailed",PlayerInfo[playerid][pJailed]); iniSetInt(File,"JailTime",PlayerInfo[playerid][pJailTime]); iniSetInt(File,"Materials",PlayerInfo[playerid][pMats]); iniSetInt(File,"Drugs",PlayerInfo[playerid][pDrugs]); iniSetInt(File,"Leader",PlayerInfo[playerid][pLeader]); iniSetInt(File,"Member",PlayerInfo[playerid][pMember]); iniSetInt(File,"FMember",PlayerInfo[playerid][pFMember]); iniSetInt(File,"Rank",PlayerInfo[playerid][pRank]); iniSetInt(File,"Zvan",PlayerInfo[playerid][pZvan]); iniSetInt(File,"Char",PlayerInfo[playerid][pChar]); iniSetInt(File,"ContractTime",PlayerInfo[playerid][pContractTime]); iniSetInt(File,"DetSkill",PlayerInfo[playerid][pDetSkill]); iniSetInt(File,"SexSkill",PlayerInfo[playerid][pSexSkill]); iniSetInt(File,"BoxSkill",PlayerInfo[playerid][pBoxSkill]); iniSetInt(File,"LawSkill",PlayerInfo[playerid][pLawSkill]); iniSetInt(File,"MechSkill",PlayerInfo[playerid][pMechSkill]); iniSetInt(File,"JackSkill",PlayerInfo[playerid][pJackSkill]); iniSetInt(File,"VorSkill",PlayerInfo[playerid][pVorSkill]); iniSetInt(File,"CarSkill",PlayerInfo[playerid][pCarSkill]); iniSetInt(File,"NewsSkill",PlayerInfo[playerid][pNewsSkill]); iniSetInt(File,"DrugsSkill",PlayerInfo[playerid][pDrugsSkill]); iniSetInt(File,"CookSkill",PlayerInfo[playerid][pCookSkill]); iniSetInt(File,"FishSkill",PlayerInfo[playerid][pFishSkill]); iniSetFloat(File,"pSHealth",PlayerInfo[playerid][pSHealth]); GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]); iniSetFloat(File,"pHealth",PlayerInfo[playerid][pHealth]); iniSetInt(File,"Int",PlayerInfo[playerid][pInt]); iniSetInt(File,"Local",PlayerInfo[playerid][pLocal]); iniSetInt(File,"Team",PlayerInfo[playerid][pTeam]); iniSetInt(File,"Model",PlayerInfo[playerid][pModel]); iniSetInt(File,"PhoneNr",PlayerInfo[playerid][pPnumber]); iniSetInt(File,"House",PlayerInfo[playerid][pPhousekey]); iniSetInt(File,"Bizz",PlayerInfo[playerid][pPbiskey]); if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0)) { PlayerInfo[playerid][pPos_x] = 1684.9; PlayerInfo[playerid][pPos_y] = -2244.5; PlayerInfo[playerid][pPos_z] = 13.5; } if(Spectate[playerid] != 255) { PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx]; PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy]; PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz]; PlayerInfo[playerid][pInt] = Unspec[playerid][sPint]; PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal]; } iniSetFloat(File,"Pos_x",PlayerInfo[playerid][pPos_x]); iniSetFloat(File,"Pos_y",PlayerInfo[playerid][pPos_y]); iniSetFloat(File,"Pos_z",PlayerInfo[playerid][pPos_z]); iniSetInt(File,"CarLic",PlayerInfo[playerid][pCarLic]); iniSetInt(File,"MotoLic",PlayerInfo[playerid][pMotoLic]); iniSetInt(File,"FlyLic",PlayerInfo[playerid][pFlyLic]); iniSetInt(File,"BusLic",PlayerInfo[playerid][pBusLic]); iniSetInt(File,"GruzLic",PlayerInfo[playerid][pGruzLic]); iniSetInt(File,"BoatLic",PlayerInfo[playerid][pBoatLic]); iniSetInt(File,"FishLic",PlayerInfo[playerid][pFishLic]); iniSetInt(File,"GunLic",PlayerInfo[playerid][pGunLic]); iniSetInt(File,"Pasport",PlayerInfo[playerid][pPasport]); iniSetInt(File,"Gun1",PlayerInfo[playerid][pGun1]); iniSetInt(File,"Gun2",PlayerInfo[playerid][pGun2]); iniSetInt(File,"Gun3",PlayerInfo[playerid][pGun3]); iniSetInt(File,"Gun4",PlayerInfo[playerid][pGun4]); iniSetInt(File,"Ammo1",PlayerInfo[playerid][pAmmo1]); iniSetInt(File,"Ammo2",PlayerInfo[playerid][pAmmo2]); iniSetInt(File,"Ammo3",PlayerInfo[playerid][pAmmo3]); iniSetInt(File,"Ammo4",PlayerInfo[playerid][pAmmo4]); iniSetInt(File,"CarTime",PlayerInfo[playerid][pCarTime]); iniSetInt(File,"VorTime",PlayerInfo[playerid][pVorTime]); iniSetInt(File,"PayDay",PlayerInfo[playerid][pPayDay]); iniSetInt(File,"PayDayHad",PlayerInfo[playerid][pPayDayHad]); iniSetInt(File,"CDPlayer",PlayerInfo[playerid][pCDPlayer]); iniSetInt(File,"Wins",PlayerInfo[playerid][pWins]); iniSetInt(File,"Loses",PlayerInfo[playerid][pLoses]); iniSetInt(File,"AlcoholPerk",PlayerInfo[playerid][pAlcoholPerk]); iniSetInt(File,"DrugPerk",PlayerInfo[playerid][pDrugPerk]); iniSetInt(File,"MiserPerk",PlayerInfo[playerid][pMiserPerk]); iniSetInt(File,"PainPerk",PlayerInfo[playerid][pPainPerk]); iniSetInt(File,"TraderPerk",PlayerInfo[playerid][pTraderPerk]); iniSetInt(File,"Tutorial",PlayerInfo[playerid][pTut]); iniSetInt(File,"MuteTime",PlayerInfo[playerid][pMuteTime]); iniSetInt(File,"AutoKey",PlayerInfo[playerid][pAutoKey]); iniSetInt(File,"Warnings",PlayerInfo[playerid][pWarns]); iniSetInt(File,"Adjustable",PlayerInfo[playerid][pAdjustable]); iniSetInt(File,"Fuel",PlayerInfo[playerid][pFuel]); iniSetInt(File,"Zakonop",PlayerInfo[playerid][pZakonp]); iniSetInt(File,"CarKey3",PlayerInfo[playerid][pCarKey3]); iniSetInt(File,"CarKey2",PlayerInfo[playerid][pCarKey2]); iniSetInt(File,"CarKey",PlayerInfo[playerid][pCarKey]); iniSetInt(File,"Ord",PlayerInfo[playerid][pOrd]); iniSetInt(File,"Sh",PlayerInfo[playerid][pSh]); iniSetInt(File,"Mask",PlayerInfo[playerid][pMask]); iniSetInt(File,"Balance",PlayerInfo[playerid][pBalance]); iniSetInt(File,"MaskSkill",PlayerInfo[playerid][pMaskSkill]); iniSetInt(File,"Pass",PlayerInfo[playerid][pPass]); iniSetInt(File,"Married",PlayerInfo[playerid][pMarried]); iniSetInt(File,"Inet",PlayerInfo[playerid][pInet]); iniSetInt(File,"Vaip",PlayerInfo[playerid][pVaip]); new year, month, day; getdate(year, month, day); new strstre[100]; format(strstre,sizeof(strstre),"%d/%d/%d",day,month,year); iniSet(File,"Online",strstre); new ptemp[80]; format(ptemp,sizeof(ptemp),"%s",PlayerInfo[playerid][pMarriedTo]); iniSet(File,"MarriedTo",ptemp); iniClose(File); } } } return 1; }[/cut]
|
| |
|
|
| Dobroe3lo | Дата: Четверг, 10.11.2011, 23:07 | Сообщение # 5869 |
|
Новенький
Группа:
Пользователи
Сообщений: 2
Награды: 0
Город: QRSK
Репутация: 0
Замечания: 0%
Статус: 
| Люди подскажите что делать, создал сервер, все хорошо настроил, запустил, но на него могу зайти только я, а другие даже не видят его в онлаине ПОМОГИТЕ ПЛИЗ, с меня +++
|
| |
|
|
| xpsoft | Дата: Четверг, 10.11.2011, 23:11 | Сообщение # 5870 |
|
Освоившийся
Группа:
Пользователи
Сообщений: 97
Награды: 0
Город: Minsk
Репутация: -19
Замечания: 0%
Статус: 
| пользователи плюс ставить не могут.
надо порты открыть. юзай гугл https://www.google.com/search?client=opera&rls=ru&q=%D0%BA%D0%B0%D0%BA+%D0%BE%D1%82%D0%BA%D1%80%D1%8B%D1%82%D1%8C+%D0%BF%D0%BE%D1%80%D1%82%D1%8B&sourceid=opera&ie=utf-8&oe=utf-8&channel=suggest
|
| |
|
|
| x-team | Дата: Четверг, 10.11.2011, 23:13 | Сообщение # 5871 |
|
Новенький
Группа:
Пользователи
Сообщений: 64
Награды: 0
Город: Москва
Репутация: 7
Замечания: 0%
Статус: 
| FireLine, Axelerator, Спасибо компилится ток такие ошибки Code (20080) : warning 202: number of arguments does not match definition 20080) : warning 202: number of arguments does not match definition (20089) : warning 202: number of arguments does not match definition (20089) : warning 202: number of arguments (59191) : warning 219: local variable "engine" shadows a variable at a preceding leve
|
| |
|
|
| xpsoft | Дата: Четверг, 10.11.2011, 23:21 | Сообщение # 5872 |
|
Освоившийся
Группа:
Пользователи
Сообщений: 97
Награды: 0
Город: Minsk
Репутация: -19
Замечания: 0%
Статус: 
| мой вопрос. когда добавляю строчку работы в код то вылазит ошибка при компилации
вот собственно я добавил эту
Code else if(PlayerInfo[targetid][pJob] == 7) { jtext = "Развозчик материалов"; }
вот сюда
Code if(PlayerInfo[targetid][pJob] == 1) { jtext = "Водитель автобуса"; } else if(PlayerInfo[targetid][pJob] == 2) { jtext = "Механик"; } else if(PlayerInfo[targetid][pJob] == 3) { jtext = "Продавец хотдогов"; } else if(PlayerInfo[targetid][pJob] == 4) { jtext = "Таксист"; } else if(PlayerInfo[targetid][pJob] == 5) { jtext = "Развозчик продуктов"; } else if(PlayerInfo[targetid][pJob] == 6) { jtext = "Тренер"; } else if(PlayerInfo[targetid][pJob] == 7) { jtext = "Развозчик материалов"; }
вылазит такая ошибка
Code E:\DOCUME~1\A957~1\0016~1\SAMPRE~1\(8)~1\GAMEMO~1\rls.pwn(21997) : error 047: array sizes do not match, or destination array is too small
ну и как вы могли догадаться 21997 это и есть строчка развозчика материалов. и где получается я допустим трабл?
|
| |
|
|
| Dobroe3lo | Дата: Четверг, 10.11.2011, 23:39 | Сообщение # 5873 |
|
Новенький
Группа:
Пользователи
Сообщений: 2
Награды: 0
Город: QRSK
Репутация: 0
Замечания: 0%
Статус: 
| Люди подскажите что делать, создал сервер, все хорошо настроил, запустил, но на него могу зайти только я, а другие даже не видят его в онлаине
IP статичный, не модем, высокоскоростной - проводной. Вот название Realtek RTL8168D, если проблема в портах
|
| |
|
|
| Mini9guar | Дата: Пятница, 11.11.2011, 00:07 | Сообщение # 5874 |
|
Новенький
Группа:
Пользователи
Сообщений: 31
Награды: 0
Город: Москва
Репутация: 0
Замечания: 0%
Статус: 
| Такая проблема.Когда механик заправляет кого либо,после оплаты бензин идет меху а не тому,кого нужно заправить.Оченю долго парюсь над проблемой.RefillOffer[playerid] заменял на RefillOffer[giveplayerid] всеравно не заправлял.Прошу помощи.
Code else if(strcmp(x_job,"refill",true) == 0) { if(RefillOffer[playerid] < 999) { if(IsPlayerConnected(RefillOffer[playerid])) { if(PlayerInfo[playerid][pCash] > RefillPrice[playerid]) { GetPlayerName(RefillOffer[giveplayerid], giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new car = GetPlayerVehicleID(playerid); format(string, sizeof(string), "Механик %s заправил вашу машину на 100 литров за %d вирт.",giveplayer,RefillPrice[playerid]); SendClientMessage(playerid, 0x6495EDFF, string); format(string, sizeof(string), "Вы заправили машину %s за %d вирт.",sendername,RefillPrice[playerid]); SendClientMessage(RefillOffer[giveplayerid], 0x6495EDFF, string); PlayerInfo[playerid][pCash] -=RefillPrice[playerid]; PlayerInfo[RefillOffer[giveplayerid]][pCash] +=RefillPrice[playerid]; if(!IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetVehicleModel(car) == 481 || GetVehicleModel(car) == 509 || GetVehicleModel(car) == 510) return SendClientMessage(playerid,COLOR_YELLOW,".: Error: You are not in a vehicle or this vehicle does not need fuel :."); if(Fuell[car] >= 100){ SendClientMessage(playerid,COLOR_GRAD1,"Ваш бак полон"); } else { Fuell[car] = 200; PlayerInfo[giveplayerid][pFuelcar] = 200; OldFuel[giveplayerid] = floatround(Fuell[car]); Refueling[giveplayerid] = 0; } return 1; } else { SendClientMessage(playerid, COLOR_GREY, "Недостаточно денег!"); return 1; } } return 1; } else { SendClientMessage(playerid, COLOR_GREY, "Вам не предлагали заправиться!"); return 1; } }
Code else if(strcmp(cmd, "/refill", true) == 0) { if(IsPlayerConnected(RefillOffer[giveplayerid])) if(PlayerInfo[playerid][pJob] != 2) return SendClientMessage(playerid, COLOR_GREY, "Вы не механик!"); if(gcontract[playerid] != 1) return SendClientMessage(playerid, COLOR_GREY, "У вас не подписан контракт с заправкой"); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "/refill [id][цена]"); new playa; new money; playa = ReturnUser(tmp); tmp = strtok(cmdtext, idx); money = cenabenza[playerid]; //money = strval(tmp); if(money < 1 || money > 5000) { SendClientMessage(playerid, COLOR_GREY, "Нельзя меньше 1 и больше 5000"); return 1; } if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 525) return SendClientMessage(playerid, COLOR_GREY, "Вы не на эвакуаторе!"); if(ProxDetectorS(8.0, playerid, playa)&& IsPlayerInAnyVehicle(playa)) { if(playa == playerid) { SendClientMessage(playerid, COLOR_GREY, "Вы указали свой id"); return 1; } GetPlayerName(playa, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "Вы предложили %s заправить его машину за %d вирт",giveplayer,cenabenza[playerid]); SendClientMessage(playerid, 0x6495EDFF, string); format(string, sizeof(string), "Механик %s предлагает заправить вашу машину за %d вирт.Введите (/use refill) чтобы подтвердить заправку",sendername,cenabenza[playerid]); SendClientMessage(playa, 0x6495EDFF, string); RefillOffer[playa] = playerid; RefillPrice[playa] = cenabenza[playerid]; } else { SendClientMessage(playerid, COLOR_GREY, "Он не в машине!"); } } } else { SendClientMessage(playerid, COLOR_GREY, "[Ошибка] Игрок не найден!"); } return 1; }
|
| |
|
|
| xpsoft | Дата: Пятница, 11.11.2011, 00:12 | Сообщение # 5875 |
|
Освоившийся
Группа:
Пользователи
Сообщений: 97
Награды: 0
Город: Minsk
Репутация: -19
Замечания: 0%
Статус: 
| Dobroe3lo, я же сказал, юзай поиск. так и пиши в гугле "Как открыть порты на модеме Realtek RTL8168D"
|
| |
|
|
| Coder | Дата: Пятница, 11.11.2011, 00:20 | Сообщение # 5876 |
|
Постоялец
Группа:
I'm V.I.P.
Сообщений: 339
Награды: 17
Город: Краснодар
Репутация: 770
Замечания: 0%
Статус: 
| xpsoft, размер массива jtext маленький и туда не влезает фраза
|
| |
|
|
| xpsoft | Дата: Пятница, 11.11.2011, 00:50 | Сообщение # 5877 |
|
Освоившийся
Группа:
Пользователи
Сообщений: 97
Награды: 0
Город: Minsk
Репутация: -19
Замечания: 0%
Статус: 
| Coder, спасибо, помогло.
|
| |
|
|
| Romich_ZX | Дата: Пятница, 11.11.2011, 06:17 | Сообщение # 5878 |
|
Уверенный в себе
Группа:
Продвинутые
Сообщений: 150
Награды: 1
Город: _[LSK]_
Репутация: 55
Замечания: 0%
Статус: 
| Перевел мод на SAMP 0.3d R8 теперь в логах пишет эту ошибку Code Script[gamemodes/nl-rp.amx]: Run time error 7: "Stack underflow"
Мои работы [MAP] AutoSchool (SAMP 0.3d) [MAP] Автостоянка [MAP] Домик в ЛВ
|
| |
|
|
| xpsoft | Дата: Пятница, 11.11.2011, 09:28 | Сообщение # 5879 |
|
Освоившийся
Группа:
Пользователи
Сообщений: 97
Награды: 0
Город: Minsk
Репутация: -19
Замечания: 0%
Статус: 
| уже 8 версия вышла. что то я проспал ) такими темпами до НГ будет релизик )
|
| |
|
|
| NeZ_pwn | Дата: Пятница, 11.11.2011, 14:37 | Сообщение # 5880 |
|
Новенький
Группа:
Пользователи
Сообщений: 51
Награды: 0
Город: Кунгур
Репутация: 0
Замечания: 0%
Статус: 
| Ребят помогите, как fs начать с нуля писать? Мне говорили что можно языки выучить чтобы легче было, а какие я не знаю. Может кто поможет.
|
| |
|
|
|
 |
|
 | |
| |
|