[Pomoc]/changepass

Započeo Faxton, Oktobar 20, 2011, 22:24:56 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Moj od 0
Detaljan opis problema: Ovako znaci napravio sam komandu /changepass i sad kad ja ukucam /changepass novasifra ,ta sifra mi se spremi u sljedecem obliku
CitatKey=novasifra
Level=1
GameMasterLevel=0
AdminLevel=0
AdminOnDuty=0
GMDuty=0
DonatorRanke=0
Ugovor=0
PGBodovi=0
TPhone=0
Eventovi=0
UpgradePoints=0
ConnectedTime=0
Registered=0
Sex=1
Age=2
Origin=1
Kredit=-1
KreditOstalo=0
CK=0
Muted=0
Respect=0
Money=900
Bank=5000
Crimes=0
Kills=0
Deaths=3
Arrested=0
WantedDeaths=0
Phonebook=0
Laptop=0
Papiri=0
OvjeraPapira=0
Naocale=0
Banovan=0
BanovanNick=0
Kaciga=0
Kredit1=0
Dionica=0
PosjedujeDionicu=0
Posao=0
Paycheck=0
HeadValue=0
Jailed=0
JailTime=0
MuteTime=0
Materials=0
Drugs=0
VehDroga=0
VehMatsi=0
Leader=0
Member=0
Rank=0
Char=0
ContractTime=0
DetSkill=0
SexSkill=0
BoxSkill=0
LawSkill=0
MechSkill=0
JackSkill=0
CarSkill=0
NewsSkill=0
DrugsSkill=0
pSHealth=0.0
pHealth=99.0
pHCPos_x=0.0
pHCPos_y=0.0
pHCPos_z=0.0
pHCRot_=0.0
Int=0
Local=255
Team=3
Model=1
VoziloSpawnano=0
HCar=0
PhoneNr=-1
House=255
Bizz=255
SBizz=255
Pos_x=1124.6
Pos_y=-2037.0
Pos_z=69.8
CarLic=0
FlyLic=0
BoatLic=0
FishLic=0
GunLic=0
CarTime=0
PayDay=0
PayDayHad=0
AlcoholPerk=0
DrugPerk=0
MiserPerk=0
PainPerk=0
TraderPerk=0
Tutorial=1
PayDayPoeni=0
Upozorenja=0
Adjustable=0
Fuel=0
Married=0
MarriedTo=Niko
Ali kad se logiram ukucam tu sifru i pise mi da nije valjana,onda ukucam staru sifru i pise da nije valjana itd.
Dio skripte:
CitatCOMMAND:changepass(playerid, params[])
   {
   new idx;
      if(IsPlayerConnected(playerid))
      {
          if(gPlayerLogged[playerid] == 0)
          {
              SendClientMessage(playerid, COLOR_GREY, "Za ovu komandu morate biti ulogovani.");
              return 1;
          }
          else
          {
             SendClientMessage(playerid, COLOR_GREY, "Koristite komandu u sljedecem izdanju.");
         }
         temp = strtok(params, idx);
         if(!strlen(temp))
         {
            SendClientMessage(playerid, COLOR_GRAD1, "Koristite: /changepass [nova sifra]");
            return 1;
         }
            strmid(PlayerInfo[playerid][pKey], temp, 0, strlen(params)-1, 255);
         OnPlayerUpdate(playerid);
         SendClientMessage(playerid, COLOR_YELLOW, "Sifa je uspesno promenjena");
      }
      return 1;
    }
Poslednja Izmena: Oktobar 20, 2011, 22:27:02 POSLE PODNE od Faxton