[POMOC]kam


Započeo luka2223, Novembar 30, 2014, 21:40:03 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Mod od 0
Detaljan opis problema:Napravio sam reg log sa tutom i sve.Kad se loginam ukucam svoj pass i kao spawna me a ja letim po nebu negde i micem se po mapi...Eto slike: http://www.igreklik.com/slike/viewer.php?file=18184758596010852020.png&file_imgur=ryFXFR1.png
Dio skripte:
public OnPlayerRequestClass(playerid, classid)
{
    ClearChatbox(playerid, 10);
    SendClientMessage(playerid, COLOR_GREEN, " ~ Dobrodosli na Balkan Evolution Gaming! ~");
    SendClientMessage(playerid, COLOR_RED, " Mozete koristiti max 26 slova ili vase ime nece biti sacuvano! ");
 	SendClientMessage(playerid, COLOR_YELLOW2, " ");
  	SendClientMessage(playerid, COLOR_YELLOW2, " ");
	SendClientMessage(playerid, COLOR_YELLOW2, " ");
	SendClientMessage(playerid, COLOR_YELLOW2, " ");
	SendClientMessage(playerid, COLOR_YELLOW2, " ");
	SendClientMessage(playerid, COLOR_YELLOW2, " ");
	TogglePlayerSpectating(playerid, true);
	  if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        SendClientMessage(playerid,COLOR_YELLOW,"Upozorenje!Vas akaunt je pronaden u nasoj bazi!Prijavi se");
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Upisite svoj password da se ulogujete.","Login","Odustani");
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registracija",""COL_WHITE"Upisite password da se registrujete.","Register","Odustani");
    }
	//
	new
                  stra[256];
    format(stra,sizeof(stra),"/users/%s.ini",PlayerName(playerid));
    if(!fexist(stra)) {
    new
                        INI:dat = INI_Open(stra);
    INI_SetTag(dat,"data");
    INI_WriteInt(dat,"Novac",0);
    INI_Close(dat);
        }
        else {
    if(fexist(stra)) {
    INI_ParseFile(stra, "Load_%s", .bExtra = true, .extra = playerid);
    GivePlayerMoney(playerid,PlayerInfo[playerid][pNovac]); }
    }
	return 1;
}
    }

case DIALOG_LOGIN:
        {
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, PlayerInfo[playerid][pNovac]);
                    SetSpawnInfo( playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0 );
                    SpawnPlayer(playerid);
                }
                else
                {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"Ukucali ste pogresan password\n"COL_WHITE"Upisite password da se ulogujete.","Login","Izlaz");
                }
                return 1;
            }
        }
        
    }

Neke slike/video za lakse dobivanje pomoci(neobavezno):e gde da ja to stavim probo sam pod taj rqest class pa pod ovaj dialog login i opet letim po nebu nezz sta je
Poslednja Izmena: Novembar 30, 2014, 21:46:12 POSLE PODNE od luka2223

Pa jesil igde ovo stavio pre spawna TogglePlayerSpectating(playerid,false);