#1

PHP код:
case 0:
                {
                    
PlayerInfo[playerid][pSkin] = COP_RANK1;
                    
SetPlayerSkin(playeridCOP_RANK1);
                    
SCM(playeridCOLOR_ORANGE"Pridruzili ste se policajcima");
                    
PlayerInfo[playerid][pCop] = 1;
                    
PlayerInfo[playerid][pCopRank] = 1;
                    
SacuvajIgraca(playerid);
                    new 
info[500];
                    
strcat(info""COL_LIGHTBLUE"Dobrodosli narednice u nasu jedinicu. Pa da vam objasnimo Vasu duznost\n\n"sizeof(info));
                    
strcat(info""COL_LIGHTBLUE"Duznost: "COL_WHITE"Vas posalo je da zaustavljate ove kriminalce sto pljackaju i ubijaju sve redom...\n"sizeof(info));
                    
strcat(info""COL_LIGHTBLUE"Duznost: "COL_WHITE"Dalje.. Postoje 2 nacina da ih zaustavite. Prvi je da ih ubijete a drugi da ih uhapsite\n"sizeof(info));
                    
strcat(info""COL_LIGHTBLUE"Duznost: "COL_WHITE"Dok ste god tu morate biti na duznosti i stititi nas predivni Los Santos\n\n"sizeof(info));
                    
strcat(info""COL_RED"STROGO JE ZABRANJENO: "COL_WHITE"Ubijati clanove policije, ubijati civile i ne izvrsavanje duznosti"sizeof(info));
                    
SPD(playeridDIALOG_PDULAZAKDIALOG_STYLE_MSGBOX"Policajci"info"Ok""");
                } 
Without that dialog everything is fine but when i add it it crashes me on spawn.. Any ideas?
Reply
#2

What value does COP_RANK1 hold? Invalid skin IDs can crash the server and/or clients.
Reply
#3

Please use proper titles for your threads as it will help other people ,who may face same problem in future,to search for solutions.
Reply
#4

These are skins defines
PHP код:
#define COP_RANK1   300
#define COP_RANK2   301
#define COP_RANK3   303
#define COP_RANK4   285
#define COP_RANK5   287

#define ROBBER_RANK1    108
#define ROBBER_RANK2    109
#define ROBBER_RANK3    110
#define ROBBER_RANK4    111
#define ROBBER_RANK5    118 
Problem is not at the dialog because i removed it and it is still the same..
I repeat it is only on login not register..
Reply
#5

299+ skins are not there ....
Reply
#6

But if it skins problem why it doesn't crash me when i select that skin?? That is not login dialog. That dialog is for command /cnr wherre i choose my team. Here is login dialog
PHP код:
if(dialogid == DIALOG_LOGIN)
    {
        if(!
response)
        {
            
Kick(playerid);
        }
        else
        {
            if(
udb_hash(inputtext) == PlayerInfo[playerid][pPassword])
            {
                
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra true, .extra playerid);
                
GivePlayerMoney(playeridPlayerInfo[playerid][pCash]);
                
SetPlayerSkin(playeridPlayerInfo[playerid][pSkin]);
                
SpawnPlayer(playerid);
                
UlogovanProvjera[playerid] = 1;
            }
            else
            {
                
SCM(playeridCOLOR_RED"Greska: Pogresna sifra");
                
SCM(playeridCOLOR_RED"Unesite sifru opet");
                
SPD(playeridDIALOG_LOGINDIALOG_STYLE_PASSWORD,"{F81414}New Age Cops and Robbers\n""{FFFFFF}Dobrodosao na {F81414}New Age CnR {FFFFFF}server!.\n{FFFFFF}Tvoj korisnicki racun je {F81414}pronadjen!\n\nUpisite vasu lozinku za da se logujete na server.""Login""Cancel");
            }
        }
    } 
Reply
#7

FIXED!
Problem was calling this
PHP код:
SetPlayerSkin(playeridPlayerInfo[playerid][pSkin]); 
under DIALOG_LOGIN and calling it OnPlayerSpawn. I deleted it from DIALOG_LOGIN and it is fixed now
Reply
#8

Quote:
Originally Posted by Gotham
Посмотреть сообщение
299+ skins are not there ....
Wow you are living in 0.3z's time...
Reply
#9

Quote:
Originally Posted by ALiScripter
Посмотреть сообщение
Wow you are living in 0.3z's time...
Lol Now it's there ? I don't know XD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)