Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Drobnjak poslato April 14, 2013, 13:05:08 POSLE PODNE

Naslov: 3 Erora pomagajte....
Poruka od: Drobnjak poslato April 14, 2013, 13:05:08 POSLE PODNE
Skripta koju koristim: SE:LV
Detaljan opis problema: Imam ova 3 errora ...
C:\Users\Braco\Desktop\SE-RP V2.2.0 LV\gamemodes\SE-LV.pwn(723) : error 025: function heading differs from prototype
C:\Users\Braco\Desktop\SE-RP V2.2.0 LV\gamemodes\SE-LV.pwn(23936) : error 025: function heading differs from prototype
C:\Users\Braco\Desktop\SE-RP V2.2.0 LV\gamemodes\SE-LV.pwn(37606) : error 035: argument type mismatch (argument 2)

Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


Dio skripte: Evo swe 3 linije...
Prva linija 723
forward OnPlayerLogin(playerid,password[]);
Druga linija 23936!
  public OnPlayerLogin(playerid,password[])
Ovo je 23964 {

I evo treca linija 37606...
OnPlayerLogin(playerid,tmppass);
OVO JE 37607 }


Neke slike/video za lakse dobivanje pomoci(neobavezno): //

Napomena : Pogledo sam temu [Citati]Warnings and errors i nisam nasao ovakav error
Naslov: Odg: 3 Erora pomagajte....
Poruka od: Drobnjak poslato April 14, 2013, 13:20:22 POSLE PODNE
Citat: David (Sabljak) A.k.A SABO(T) poslato April 14, 2013, 13:15:18 POSLE PODNE
nema potrebe da koristis kao public to, izbrisi public i forward i stavi stock

i daj nam cjeli taj dio od OnLogin

Izbriso sam forward ali nez kako da stavim stock...
i obrsio sam  37606 liniju

Ovo je cijeli
OnLogin
public OnPlayerLogin(playerid,password[])
{
new tmp2[256];
    new string2[256];
new playername2[MAX_PLAYER_NAME];
new playernamesplit[3][MAX_PLAYER_NAME];
GetPlayerName(playerid, playername2, sizeof(playername2));
split(playername2, playernamesplit, '_');
format(string2, sizeof(string2), "users/%s.ini", playername2);
new File: UserFile = fopen(string2, io_read);
if ( UserFile )
{
    new PassData[256];
    new keytmp[256], valtmp[256];
    fread( UserFile , PassData , sizeof( PassData ) );
    keytmp = ini_GetKey( PassData );
    if( strcmp( keytmp , "Key" , true ) == 0 )
{
valtmp = ini_GetValue( PassData );
strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
}
if(strcmp(PlayerInfo[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 ); PlayerInfo[playerid][pLevel] = strval( val ); }
    if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strval( val ); }
        if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strval( val ); }
        if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); }
        if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); }
        if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAge] = strval( val ); }
        if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); }
        if( strcmp( key , "CK" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCK] = strval( val ); }
        if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); }
        if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); }
        if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
        if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAccount] = strval( val ); }
        if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strval( val ); }
        if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }
        if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }
        if( strcmp( key , "WantedDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedDeaths] = strval( val ); }
        if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pImenik] = strval( val ); }
        if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); }
        if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJob] = strval( val ); }
        if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayCheck] = strval( val ); }
        if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strval( val ); }
        if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strval( val ); }
        if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strval( val ); }
        if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strval( val ); }
        if( strcmp( key , "Heroin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeroin] = strval( val ); }
        if( strcmp( key , "Kokain" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKokain] = strval( val ); }
        if( strcmp( key , "Marihuana" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarihuana] = strval( val ); }
        if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strval( val ); }
        if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strval( val ); }
        if( strcmp( key , "FMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMember] = strval( val ); }
        if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRank] = strval( val ); }
        if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChar] = strval( val ); }
        if( strcmp( key , "ContractTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pContractTime] = strval( val ); }
        if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strval( val ); }
        if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strval( val ); }
        if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeam] = strval( val ); }
        if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strval( val ); }
        if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); }
        if( strcmp( key , "Car" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAutoKljuc1] = strval( val ); }
        if( strcmp( key , "Car2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAutoKljuc2] = strval( val ); }
        if( strcmp( key , "Car3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAutoKljuc3] = strval( val ); }
        if( strcmp( key , "Car4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAutoKljuc4] = strval( val ); }
        if( strcmp( key , "Car5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAutoKljuc5] = strval( val ); }
        if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKucaKljuc] = strval( val ); }
        if( strcmp( key , "Stan" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pStanKljuc] = strval( val ); }
        if( strcmp( key , "hotel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHotelKljuc] = strval( val ); }
        if( strcmp( key , "vikendica" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVikendicaKljuc] = strval( val ); }
        if( strcmp( key , "Firma 1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFirmaKljuc] = strval( val ); }
        if( strcmp( key , "Firma 2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFirmaKljuc1] = strval( val ); }
        if( strcmp( key , "Firma 3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFirmaKljuc2] = strval( val ); }
        if( strcmp( key , "Kucno auto" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHCar] = strval( val ); }
        if( strcmp( key , "Pos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_x] = floatstr( val ); }
        if( strcmp( key , "Pos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_y] = floatstr( val ); }
        if( strcmp( key , "Pos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_z] = floatstr( val ); }
        if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strval( val ); }
                    if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strval( val ); }
if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strval( val ); }
        if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strval( val ); }
        if( strcmp( key , "BusLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBusLic] = strval( val ); }
        if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); }
        if( strcmp( key , "Gun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun1] = strval( val ); }
        if( strcmp( key , "Gun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun2] = strval( val ); }
        if( strcmp( key , "Gun3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun3] = strval( val ); }
        if( strcmp( key , "Gun4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun4] = strval( val ); }
        if( strcmp( key , "Ammo1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo1] = strval( val ); }
        if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); }
        if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); }
        if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); }
        if( strcmp( key , "CarTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarTime] = strval( val ); }
        if( strcmp( key , "IsplataHad" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pIsplataHad] = strval( val ); }
        if( strcmp( key , "Watch" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWatch] = strval( val ); }
        if( strcmp( key , "Crashed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrashed] = strval( val ); }
        if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strval( val ); }
        if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strval( val ); }
        if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strval( val ); }
        if( strcmp( key , "Mission" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMissionNr] = strval( val ); }
        if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); }
        if( strcmp( key , "VirWorld" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVirWorld] = strval( val ); }
        if( strcmp( key , "Fuel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFuel] = strval( val ); }
        if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strval( val ); }
        if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }
        if( strcmp( key , "FishTool" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishTool] = strval( val ); }
                    if( strcmp( key , "Kredit" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKredit] = strval( val ); }
        if( strcmp( key , "InvWeapon" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon] = strval( val ); }
        if( strcmp( key , "InvAmmo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo] = strval( val ); }
        if( strcmp( key , "Cigarettes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCigarettes] = strval( val ); }
        if( strcmp( key , "Locked" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocked] = strval( val ); }
        if( strcmp( key , "GameMaster" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGm] = strval( val ); }
        if( strcmp( key , "Donatorski GameMaster" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDGm] = strval( val ); }
        if( strcmp( key , "Donator" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDonator] = strval( val ); }
                    if( strcmp( key , "Kredit Telefon" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKreditTelefon] = strval( val ); }
                    if( strcmp( key , "SIM Kartica" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); }
                    if( strcmp( key , "Nokia" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNokia] = strval( val ); }
                    if( strcmp( key , "Imuniter" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pImunitet] = strval( val ); }
                    if( strcmp( key , "Adminska kazna" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdminska] = strval( val ); }
                    if( strcmp( key , "Uhapsen" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested]= strval( val ); }
                    if( strcmp( key , "Pljackao banku" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPljackao]= strval( val ); }
                    if( strcmp( key , "Liderska kazna" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKazniClana]= strval( val ); }
                    if( strcmp( key , "MP3 Player" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMP3]= strval( val ); }
                    if( strcmp( key , "Stan spawn" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Stan", strval( val )); }
                    if( strcmp( key , "Kuca spawn" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Kuca", strval( val )); }
                    if( strcmp( key , "Vikendica spawn" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Vikendica", strval( val )); }
                    if( strcmp( key , "Licna Karta" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLicnaKarta]= strval( val ); }
                    if( strcmp( key , "Kosa" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKosa]= strval( val ); }
                    if( strcmp( key , "Svet" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Svet", strval( val )); }
                    if( strcmp( key , "MuteTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuteTime] = strval( val ); }
                    if( strcmp( key , "Maper" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Maper", strval( val )); }
if( strcmp( key , "Skripter" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Skripter", strval( val )); }
if( strcmp( key , "Marketing" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Marketing", strval( val )); }
                    if( strcmp( key , "Odeca" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOdeca]= strval( val ); }
                    if( strcmp( key , "Odeca1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOdeca1]= strval( val ); }
                    if( strcmp( key , "Odeca2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOdeca2] = strval( val ); }
                    if( strcmp( key , "Zabrana reporta" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pZabranaReport]= strval( val ); }
                    if( strcmp( key , "Zabrana reporta vreme" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pZabranaReportVreme] = strval( val ); }
                    if( strcmp( key , "Zabrana invite" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pZabranaInvite]= strval( val ); }
                    if( strcmp( key , "Zabrana invite vreme" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pZabranaInviteVreme] = strval( val ); }
                    if( strcmp( key , "Posao Sati" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSatiPosao] = strval( val ); }
                    if( strcmp( key , "Lider obavest" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLiderObavest] = strval( val ); }
                    if( strcmp( key , "Lider obavest vreme " , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLiderObavestVreme] = strval( val ); }
                    if( strcmp( key , "Isplata" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pIsplata] = strval( val ); }
                    if( strcmp( key , "Radna knjizica" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRadnaKnjizica] = strval( val ); }
                    if( strcmp( key , "Radna knjizica posedovanje" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRadnaK] = strval( val ); }
}//end while
                fclose(UserFile);//close the file after everything has been read in the while
}
else
{
SetPlayerPos(playerid, 1737.1301,1448.5820,10.6713);
SetPlayerCameraPos(playerid, 1737.1301,1448.5820,10.6713); SetPlayerCameraLookAt(playerid, 1705.3522,1448.0608,10.8182);
new loginname[840];
    new mesage1[128];
    new mesage2[128];
    new mesage3[128];
    new mesage4[128];
    new mesage5[128];
     GetPlayerName(playerid,loginname,sizeof(loginname));
              format(mesage1, sizeof(mesage1),  "==========================================\n\n ");
      format(mesage2, sizeof(mesage2),  " Pogresili ste sifru,unesite je ponovo\n ",loginname);
              format(mesage3, sizeof(mesage3),  " ako pogresite 3 puta sifru\n",loginname);
              format(mesage4, sizeof(mesage4),  "  Dobijate automacki ban od servera\n\n ",loginname);
              format(mesage5, sizeof(mesage5),  " ==========================================\n",loginname);
              format(loginname, 840," %s%s%s%s%s",mesage1,mesage2,mesage3,mesage4,mesage5);
  ShowPlayerDialog(playerid, 12347,DIALOG_STYLE_PASSWORD, "{ffffff}Nemate account ", loginname, "Prijava", "Izadji" );
        fclose(UserFile);
        gPlayerLogTries[playerid] += 1;
        if(gPlayerLogTries[playerid] == 4) { Kick(playerid); }
        return 1;
}
//PlayerInfo[playerid][pAdjustable] = 0;
JBC_ResetPlayerMoney(playerid);
JBC_GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
CurrentMoney[playerid] = PlayerInfo[playerid][pCash];
if(PlayerInfo[playerid][pReg] == 0)
{
            SetPVarInt(playerid,"Svet",0);
PlayerInfo[playerid][pLevel] = 1;
PlayerInfo[playerid][pSHealth] = 0.0;
PlayerInfo[playerid][pHealth] = 50.0;
PlayerInfo[playerid][pPos_x] = 1612.3240;
PlayerInfo[playerid][pPos_y] = -2330.1670;
PlayerInfo[playerid][pPos_z] = 13.5469;
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
PlayerInfo[playerid][pTeam] = 3;
PlayerInfo[playerid][pModel] = 135;
    new randphone = 1000 + random(9999);//minimum 1000  max 9999 //giving one at the start
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pKucaKljuc] = 255;
PlayerInfo[playerid][pKucaKljuc] = 255;
PlayerInfo[playerid][pStanKljuc] = 255;
            PlayerInfo[playerid][pHotelKljuc] = 255;
PlayerInfo[playerid][pVikendicaKljuc] = 255;
PlayerInfo[playerid][pAutoKljuc1] = 999;
PlayerInfo[playerid][pAutoKljuc2] = 999;
PlayerInfo[playerid][pKazniClana] = 0;
PlayerInfo[playerid][pAutoKljuc3] = 999;
PlayerInfo[playerid][pAutoKljuc4] = 999;
PlayerInfo[playerid][pAutoKljuc5] = 999;
PlayerInfo[playerid][pFirmaKljuc] = 255;
PlayerInfo[playerid][pFirmaKljuc1] = 255;
PlayerInfo[playerid][pFirmaKljuc2] = 255;
PlayerInfo[playerid][pPljackao] = 0;
PlayerInfo[playerid][pAccount] = 0;
PlayerInfo[playerid][pDonator] = 0;
PlayerInfo[playerid][pAdminska] = 0;
PlayerInfo[playerid][pArrested] = 0;
PlayerInfo[playerid][pOrg] = 0;
PlayerInfo[playerid][pMP3] = 0;
PlayerInfo[playerid][pReg] = 1;
PlayerInfo[playerid][pImunitet] = 0;
PlayerInfo[playerid][pLicnaKarta] = 0;
SetPVarInt(playerid,"PosaoSati",0);
PlayerInfo[playerid][pZabranaInvite] = 0;
PlayerInfo[playerid][pZabranaInviteVreme] = 0;
JBC_GivePlayerMoney(playerid, 500);//
}
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
/* new house = PlayerInfo[playerid][pKucaKljuc];
if (house != 255 && PlayerInfo[playerid][pHCar] == 1)
{
HouseVehicle[playerid] = CreateVehicle(Houses[house][hVec], PlayerInfo[playerid][pHCPos_x], PlayerInfo[playerid][pHCPos_y], PlayerInfo[playerid][pHCPos_z], PlayerInfo[playerid][pHCRot_],  Houses[house][hVcol1], Houses[house][hVcol2], -1);
SetVehicleNumberPlate(HouseVehicle[playerid], "{800040}HouseCar");
}//34*/
if(PlayerInfo[playerid][pLocked] == 1) // Auto-kick
{
    SendClientMessage(playerid, COLOR_LIGHTRED, "Vas account je zakljucan");
    Kick(playerid);
}
if(PlayerInfo[playerid][pLevel] == -999)
{
Ban(playerid);
}
else if(PlayerInfo[playerid][pCK] > 0)
{
    Kick(playerid);
}
format(string2,sizeof(string2),"{157DEC}Igrac:{FFFFFF} %s {157DEC}||ID:{FFFFFF} %d {157DEC}se prikljucio na server||{157DEC}Status admina:{FFFFFF} %d",playername2,playerid,PlayerInfo[playerid][pAdmin]);
SendAdminsMessage(COLOR_WHITE,string2);
printf("%s has logged in.",playername2);

// Reset the FirstSpawn variable
SetTimerEx("UnsetFirstSpawn", 5000, false, "i", playerid);

// Unset Crash
SetTimerEx("UnsetCrash", 5000, false, "i", playerid);

SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
if(gTeam[playerid] == 0)
{
gTeam[playerid] = 3;
}
else
{
gTeam[playerid] = PlayerInfo[playerid][pTeam];
}
gPlayerLogged[playerid] = 1;
SpawnPlayer(playerid);
if(PlayerInfo[playerid][pCrashed] == 0)
{
format(tmp2, sizeof(tmp2), "{157DEC}dobrodosao {FFFFFF}%s", playername2);
}
else
{
format(string2,sizeof(string2),"{157DEC}Igrac:{FFFFFF} %s {157DEC}||ID:{FFFFFF} %d {157DEC}je imao Crash",playername2,playerid);
        SendAdminsMessage(COLOR_WHITE,string2);
        StopAudioStreamForPlayer(playerid);
    SendClientMessage(playerid,COLOR_WHITE,"{157DEC}Imali ste {FFFFFF}Crash");
    JBC_SetPlayerPos(playerid,1715.3801,-1930.2518,13.5672);
}
//SendClientMessage(playerid, COLOR_YELLOW, motd);
/*if(PlayerInfo[playerid][pFMember] < 255)
{
    format(tmp2, sizeof(tmp2), "Family MOTD: %s.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]);
    SendClientMessage(playerid, COLOR_YELLOW, tmp2);
}*/
foreach (Player, i)
{
        if(PlayerInfo[i][pMaskuse] == 1)
        {
            ShowPlayerNameTagForPlayer(playerid, i, 0);
    }
}
}
return 1;
}


Evo i ovo
//PRIJAVLJIVANJE
if(response)
{
if(dialogid == 12346 || dialogid == 12347)
{
    if(strlen(inputtext))
    {
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
//Encrypt(tmppass);
//OnPlayerLogin(playerid,tmppass);
}
else
{

new loginname[64];
SetPlayerPos(playerid, 1737.1301,1448.5820,10.6713);
SetPlayerCameraPos(playerid, 1737.1301,1448.5820,10.6713); SetPlayerCameraLookAt(playerid, 1705.3522,1448.0608,10.8182);
SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
GetPlayerName(playerid,loginname,sizeof(loginname));
    format(loginname, sizeof(loginname),  "{0049FF}Morate potvrditi sifru ali ste upravo pogresili sifru",loginname);
      ShowPlayerDialog(playerid, 12347,DIALOG_STYLE_PASSWORD, "{FF0000}Nematacna sifra ", loginname, "Prijava", "Izadji" );
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 5) { Ban(playerid); }
}
}
if(dialogid == 12345)
{
    if(strlen(inputtext))
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s.ini", sendername);
new File: hFile = fopen(string, io_read);
if (hFile)
{
SendClientMessage(playerid, COLOR_YELLOW, "To ime se vec koristi, molimo vas uzmite drugo.");
fclose(hFile);
return 1;
}
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
//Encrypt(tmppass);
OnPlayerRegister(playerid,tmppass);
}
else
{
new regstring[128];
new regname[64];
SetPlayerPos(playerid, 1737.1301,1448.5820,10.6713);
SetPlayerCameraPos(playerid, 1737.1301,1448.5820,10.6713); SetPlayerCameraLookAt(playerid, 1705.3522,1448.0608,10.8182);
SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Dobrodosli, %s\nNemate account.\nMoracete da se registrujete:",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"Registracija",regstring,"Registracija","Izadji");
}
}
}
else
{
// Kick(playerid);
}
return 1;
}
Naslov: Odg: 3 Erora pomagajte....
Poruka od: Drobnjak poslato April 14, 2013, 14:53:58 POSLE PODNE
Citat: YUG Staff Team poslato April 14, 2013, 13:20:22 POSLE PODNE
Citat: David (Sabljak) A.k.A SABO(T) poslato April 14, 2013, 13:15:18 POSLE PODNE
nema potrebe da koristis kao public to, izbrisi public i forward i stavi stock

i daj nam cjeli taj dio od OnLogin

Izbriso sam forward ali nez kako da stavim stock...
i obrsio sam  37606 liniju

Ovo je cijeli
OnLogin
public OnPlayerLogin(playerid,password[])
{
new tmp2[256];
    new string2[256];
new playername2[MAX_PLAYER_NAME];
new playernamesplit[3][MAX_PLAYER_NAME];
GetPlayerName(playerid, playername2, sizeof(playername2));
split(playername2, playernamesplit, '_');
format(string2, sizeof(string2), "users/%s.ini", playername2);
new File: UserFile = fopen(string2, io_read);
if ( UserFile )
{
    new PassData[256];
    new keytmp[256], valtmp[256];
    fread( UserFile , PassData , sizeof( PassData ) );
    keytmp = ini_GetKey( PassData );
    if( strcmp( keytmp , "Key" , true ) == 0 )
{
valtmp = ini_GetValue( PassData );
strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
}
if(strcmp(PlayerInfo[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 ); PlayerInfo[playerid][pLevel] = strval( val ); }
    if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strval( val ); }
        if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strval( val ); }
        if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); }
        if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); }
        if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAge] = strval( val ); }
        if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); }
        if( strcmp( key , "CK" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCK] = strval( val ); }
        if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); }
        if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); }
        if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
        if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAccount] = strval( val ); }
        if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strval( val ); }
        if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }
        if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }
        if( strcmp( key , "WantedDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedDeaths] = strval( val ); }
        if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pImenik] = strval( val ); }
        if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); }
        if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJob] = strval( val ); }
        if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayCheck] = strval( val ); }
        if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strval( val ); }
        if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strval( val ); }
        if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strval( val ); }
        if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strval( val ); }
        if( strcmp( key , "Heroin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeroin] = strval( val ); }
        if( strcmp( key , "Kokain" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKokain] = strval( val ); }
        if( strcmp( key , "Marihuana" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarihuana] = strval( val ); }
        if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strval( val ); }
        if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strval( val ); }
        if( strcmp( key , "FMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMember] = strval( val ); }
        if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRank] = strval( val ); }
        if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChar] = strval( val ); }
        if( strcmp( key , "ContractTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pContractTime] = strval( val ); }
        if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strval( val ); }
        if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strval( val ); }
        if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeam] = strval( val ); }
        if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strval( val ); }
        if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); }
        if( strcmp( key , "Car" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAutoKljuc1] = strval( val ); }
        if( strcmp( key , "Car2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAutoKljuc2] = strval( val ); }
        if( strcmp( key , "Car3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAutoKljuc3] = strval( val ); }
        if( strcmp( key , "Car4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAutoKljuc4] = strval( val ); }
        if( strcmp( key , "Car5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAutoKljuc5] = strval( val ); }
        if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKucaKljuc] = strval( val ); }
        if( strcmp( key , "Stan" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pStanKljuc] = strval( val ); }
        if( strcmp( key , "hotel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHotelKljuc] = strval( val ); }
        if( strcmp( key , "vikendica" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVikendicaKljuc] = strval( val ); }
        if( strcmp( key , "Firma 1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFirmaKljuc] = strval( val ); }
        if( strcmp( key , "Firma 2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFirmaKljuc1] = strval( val ); }
        if( strcmp( key , "Firma 3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFirmaKljuc2] = strval( val ); }
        if( strcmp( key , "Kucno auto" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHCar] = strval( val ); }
        if( strcmp( key , "Pos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_x] = floatstr( val ); }
        if( strcmp( key , "Pos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_y] = floatstr( val ); }
        if( strcmp( key , "Pos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_z] = floatstr( val ); }
        if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strval( val ); }
                    if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strval( val ); }
if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strval( val ); }
        if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strval( val ); }
        if( strcmp( key , "BusLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBusLic] = strval( val ); }
        if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); }
        if( strcmp( key , "Gun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun1] = strval( val ); }
        if( strcmp( key , "Gun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun2] = strval( val ); }
        if( strcmp( key , "Gun3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun3] = strval( val ); }
        if( strcmp( key , "Gun4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun4] = strval( val ); }
        if( strcmp( key , "Ammo1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo1] = strval( val ); }
        if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); }
        if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); }
        if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); }
        if( strcmp( key , "CarTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarTime] = strval( val ); }
        if( strcmp( key , "IsplataHad" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pIsplataHad] = strval( val ); }
        if( strcmp( key , "Watch" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWatch] = strval( val ); }
        if( strcmp( key , "Crashed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrashed] = strval( val ); }
        if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strval( val ); }
        if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strval( val ); }
        if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strval( val ); }
        if( strcmp( key , "Mission" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMissionNr] = strval( val ); }
        if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); }
        if( strcmp( key , "VirWorld" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVirWorld] = strval( val ); }
        if( strcmp( key , "Fuel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFuel] = strval( val ); }
        if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strval( val ); }
        if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }
        if( strcmp( key , "FishTool" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishTool] = strval( val ); }
                    if( strcmp( key , "Kredit" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKredit] = strval( val ); }
        if( strcmp( key , "InvWeapon" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon] = strval( val ); }
        if( strcmp( key , "InvAmmo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo] = strval( val ); }
        if( strcmp( key , "Cigarettes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCigarettes] = strval( val ); }
        if( strcmp( key , "Locked" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocked] = strval( val ); }
        if( strcmp( key , "GameMaster" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGm] = strval( val ); }
        if( strcmp( key , "Donatorski GameMaster" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDGm] = strval( val ); }
        if( strcmp( key , "Donator" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDonator] = strval( val ); }
                    if( strcmp( key , "Kredit Telefon" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKreditTelefon] = strval( val ); }
                    if( strcmp( key , "SIM Kartica" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); }
                    if( strcmp( key , "Nokia" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNokia] = strval( val ); }
                    if( strcmp( key , "Imuniter" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pImunitet] = strval( val ); }
                    if( strcmp( key , "Adminska kazna" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdminska] = strval( val ); }
                    if( strcmp( key , "Uhapsen" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested]= strval( val ); }
                    if( strcmp( key , "Pljackao banku" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPljackao]= strval( val ); }
                    if( strcmp( key , "Liderska kazna" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKazniClana]= strval( val ); }
                    if( strcmp( key , "MP3 Player" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMP3]= strval( val ); }
                    if( strcmp( key , "Stan spawn" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Stan", strval( val )); }
                    if( strcmp( key , "Kuca spawn" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Kuca", strval( val )); }
                    if( strcmp( key , "Vikendica spawn" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Vikendica", strval( val )); }
                    if( strcmp( key , "Licna Karta" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLicnaKarta]= strval( val ); }
                    if( strcmp( key , "Kosa" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKosa]= strval( val ); }
                    if( strcmp( key , "Svet" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Svet", strval( val )); }
                    if( strcmp( key , "MuteTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuteTime] = strval( val ); }
                    if( strcmp( key , "Maper" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Maper", strval( val )); }
if( strcmp( key , "Skripter" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Skripter", strval( val )); }
if( strcmp( key , "Marketing" , true ) == 0 ) { val = ini_GetValue( Data ); SetPVarInt(playerid, "Marketing", strval( val )); }
                    if( strcmp( key , "Odeca" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOdeca]= strval( val ); }
                    if( strcmp( key , "Odeca1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOdeca1]= strval( val ); }
                    if( strcmp( key , "Odeca2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOdeca2] = strval( val ); }
                    if( strcmp( key , "Zabrana reporta" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pZabranaReport]= strval( val ); }
                    if( strcmp( key , "Zabrana reporta vreme" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pZabranaReportVreme] = strval( val ); }
                    if( strcmp( key , "Zabrana invite" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pZabranaInvite]= strval( val ); }
                    if( strcmp( key , "Zabrana invite vreme" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pZabranaInviteVreme] = strval( val ); }
                    if( strcmp( key , "Posao Sati" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSatiPosao] = strval( val ); }
                    if( strcmp( key , "Lider obavest" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLiderObavest] = strval( val ); }
                    if( strcmp( key , "Lider obavest vreme " , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLiderObavestVreme] = strval( val ); }
                    if( strcmp( key , "Isplata" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pIsplata] = strval( val ); }
                    if( strcmp( key , "Radna knjizica" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRadnaKnjizica] = strval( val ); }
                    if( strcmp( key , "Radna knjizica posedovanje" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRadnaK] = strval( val ); }
}//end while
                fclose(UserFile);//close the file after everything has been read in the while
}
else
{
SetPlayerPos(playerid, 1737.1301,1448.5820,10.6713);
SetPlayerCameraPos(playerid, 1737.1301,1448.5820,10.6713); SetPlayerCameraLookAt(playerid, 1705.3522,1448.0608,10.8182);
new loginname[840];
    new mesage1[128];
    new mesage2[128];
    new mesage3[128];
    new mesage4[128];
    new mesage5[128];
     GetPlayerName(playerid,loginname,sizeof(loginname));
              format(mesage1, sizeof(mesage1),  "==========================================\n\n ");
      format(mesage2, sizeof(mesage2),  " Pogresili ste sifru,unesite je ponovo\n ",loginname);
              format(mesage3, sizeof(mesage3),  " ako pogresite 3 puta sifru\n",loginname);
              format(mesage4, sizeof(mesage4),  "  Dobijate automacki ban od servera\n\n ",loginname);
              format(mesage5, sizeof(mesage5),  " ==========================================\n",loginname);
              format(loginname, 840," %s%s%s%s%s",mesage1,mesage2,mesage3,mesage4,mesage5);
  ShowPlayerDialog(playerid, 12347,DIALOG_STYLE_PASSWORD, "{ffffff}Nemate account ", loginname, "Prijava", "Izadji" );
        fclose(UserFile);
        gPlayerLogTries[playerid] += 1;
        if(gPlayerLogTries[playerid] == 4) { Kick(playerid); }
        return 1;
}
//PlayerInfo[playerid][pAdjustable] = 0;
JBC_ResetPlayerMoney(playerid);
JBC_GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
CurrentMoney[playerid] = PlayerInfo[playerid][pCash];
if(PlayerInfo[playerid][pReg] == 0)
{
            SetPVarInt(playerid,"Svet",0);
PlayerInfo[playerid][pLevel] = 1;
PlayerInfo[playerid][pSHealth] = 0.0;
PlayerInfo[playerid][pHealth] = 50.0;
PlayerInfo[playerid][pPos_x] = 1612.3240;
PlayerInfo[playerid][pPos_y] = -2330.1670;
PlayerInfo[playerid][pPos_z] = 13.5469;
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
PlayerInfo[playerid][pTeam] = 3;
PlayerInfo[playerid][pModel] = 135;
    new randphone = 1000 + random(9999);//minimum 1000  max 9999 //giving one at the start
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pKucaKljuc] = 255;
PlayerInfo[playerid][pKucaKljuc] = 255;
PlayerInfo[playerid][pStanKljuc] = 255;
            PlayerInfo[playerid][pHotelKljuc] = 255;
PlayerInfo[playerid][pVikendicaKljuc] = 255;
PlayerInfo[playerid][pAutoKljuc1] = 999;
PlayerInfo[playerid][pAutoKljuc2] = 999;
PlayerInfo[playerid][pKazniClana] = 0;
PlayerInfo[playerid][pAutoKljuc3] = 999;
PlayerInfo[playerid][pAutoKljuc4] = 999;
PlayerInfo[playerid][pAutoKljuc5] = 999;
PlayerInfo[playerid][pFirmaKljuc] = 255;
PlayerInfo[playerid][pFirmaKljuc1] = 255;
PlayerInfo[playerid][pFirmaKljuc2] = 255;
PlayerInfo[playerid][pPljackao] = 0;
PlayerInfo[playerid][pAccount] = 0;
PlayerInfo[playerid][pDonator] = 0;
PlayerInfo[playerid][pAdminska] = 0;
PlayerInfo[playerid][pArrested] = 0;
PlayerInfo[playerid][pOrg] = 0;
PlayerInfo[playerid][pMP3] = 0;
PlayerInfo[playerid][pReg] = 1;
PlayerInfo[playerid][pImunitet] = 0;
PlayerInfo[playerid][pLicnaKarta] = 0;
SetPVarInt(playerid,"PosaoSati",0);
PlayerInfo[playerid][pZabranaInvite] = 0;
PlayerInfo[playerid][pZabranaInviteVreme] = 0;
JBC_GivePlayerMoney(playerid, 500);//
}
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
/* new house = PlayerInfo[playerid][pKucaKljuc];
if (house != 255 && PlayerInfo[playerid][pHCar] == 1)
{
HouseVehicle[playerid] = CreateVehicle(Houses[house][hVec], PlayerInfo[playerid][pHCPos_x], PlayerInfo[playerid][pHCPos_y], PlayerInfo[playerid][pHCPos_z], PlayerInfo[playerid][pHCRot_],  Houses[house][hVcol1], Houses[house][hVcol2], -1);
SetVehicleNumberPlate(HouseVehicle[playerid], "{800040}HouseCar");
}//34*/
if(PlayerInfo[playerid][pLocked] == 1) // Auto-kick
{
    SendClientMessage(playerid, COLOR_LIGHTRED, "Vas account je zakljucan");
    Kick(playerid);
}
if(PlayerInfo[playerid][pLevel] == -999)
{
Ban(playerid);
}
else if(PlayerInfo[playerid][pCK] > 0)
{
    Kick(playerid);
}
format(string2,sizeof(string2),"{157DEC}Igrac:{FFFFFF} %s {157DEC}||ID:{FFFFFF} %d {157DEC}se prikljucio na server||{157DEC}Status admina:{FFFFFF} %d",playername2,playerid,PlayerInfo[playerid][pAdmin]);
SendAdminsMessage(COLOR_WHITE,string2);
printf("%s has logged in.",playername2);

// Reset the FirstSpawn variable
SetTimerEx("UnsetFirstSpawn", 5000, false, "i", playerid);

// Unset Crash
SetTimerEx("UnsetCrash", 5000, false, "i", playerid);

SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
if(gTeam[playerid] == 0)
{
gTeam[playerid] = 3;
}
else
{
gTeam[playerid] = PlayerInfo[playerid][pTeam];
}
gPlayerLogged[playerid] = 1;
SpawnPlayer(playerid);
if(PlayerInfo[playerid][pCrashed] == 0)
{
format(tmp2, sizeof(tmp2), "{157DEC}dobrodosao {FFFFFF}%s", playername2);
}
else
{
format(string2,sizeof(string2),"{157DEC}Igrac:{FFFFFF} %s {157DEC}||ID:{FFFFFF} %d {157DEC}je imao Crash",playername2,playerid);
        SendAdminsMessage(COLOR_WHITE,string2);
        StopAudioStreamForPlayer(playerid);
    SendClientMessage(playerid,COLOR_WHITE,"{157DEC}Imali ste {FFFFFF}Crash");
    JBC_SetPlayerPos(playerid,1715.3801,-1930.2518,13.5672);
}
//SendClientMessage(playerid, COLOR_YELLOW, motd);
/*if(PlayerInfo[playerid][pFMember] < 255)
{
    format(tmp2, sizeof(tmp2), "Family MOTD: %s.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]);
    SendClientMessage(playerid, COLOR_YELLOW, tmp2);
}*/
foreach (Player, i)
{
        if(PlayerInfo[i][pMaskuse] == 1)
        {
            ShowPlayerNameTagForPlayer(playerid, i, 0);
    }
}
}
return 1;
}


Evo i ovo
//PRIJAVLJIVANJE
if(response)
{
if(dialogid == 12346 || dialogid == 12347)
{
    if(strlen(inputtext))
    {
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
//Encrypt(tmppass);
//OnPlayerLogin(playerid,tmppass);
}
else
{

new loginname[64];
SetPlayerPos(playerid, 1737.1301,1448.5820,10.6713);
SetPlayerCameraPos(playerid, 1737.1301,1448.5820,10.6713); SetPlayerCameraLookAt(playerid, 1705.3522,1448.0608,10.8182);
SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
GetPlayerName(playerid,loginname,sizeof(loginname));
    format(loginname, sizeof(loginname),  "{0049FF}Morate potvrditi sifru ali ste upravo pogresili sifru",loginname);
      ShowPlayerDialog(playerid, 12347,DIALOG_STYLE_PASSWORD, "{FF0000}Nematacna sifra ", loginname, "Prijava", "Izadji" );
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 5) { Ban(playerid); }
}
}
if(dialogid == 12345)
{
    if(strlen(inputtext))
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s.ini", sendername);
new File: hFile = fopen(string, io_read);
if (hFile)
{
SendClientMessage(playerid, COLOR_YELLOW, "To ime se vec koristi, molimo vas uzmite drugo.");
fclose(hFile);
return 1;
}
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
//Encrypt(tmppass);
OnPlayerRegister(playerid,tmppass);
}
else
{
new regstring[128];
new regname[64];
SetPlayerPos(playerid, 1737.1301,1448.5820,10.6713);
SetPlayerCameraPos(playerid, 1737.1301,1448.5820,10.6713); SetPlayerCameraLookAt(playerid, 1705.3522,1448.0608,10.8182);
SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Dobrodosli, %s\nNemate account.\nMoracete da se registrujete:",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"Registracija",regstring,"Registracija","Izadji");
}
}
}
else
{
// Kick(playerid);
}
return 1;
}