Crash problem -
Micko123 - 15.10.2016
PHP код:
case 0:
{
PlayerInfo[playerid][pSkin] = COP_RANK1;
SetPlayerSkin(playerid, COP_RANK1);
SCM(playerid, COLOR_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(playerid, DIALOG_PDULAZAK, DIALOG_STYLE_MSGBOX, "Policajci", info, "Ok", "");
}
Without that dialog everything is fine but when i add it it crashes me on spawn.. Any ideas?
Re: Ha? -
Threshold - 15.10.2016
What value does COP_RANK1 hold? Invalid skin IDs can crash the server and/or clients.
Re: Ha? -
SyS - 15.10.2016
Please use proper titles for your threads as it will help other people ,who may face same problem in future,to search for solutions.
Re: Ha? -
Micko123 - 15.10.2016
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..
Re: Ha? -
Gotham - 15.10.2016
299+ skins are not there ....
Re: Ha? -
Micko123 - 15.10.2016
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(playerid, PlayerInfo[playerid][pCash]);
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
SpawnPlayer(playerid);
UlogovanProvjera[playerid] = 1;
}
else
{
SCM(playerid, COLOR_RED, "Greska: Pogresna sifra");
SCM(playerid, COLOR_RED, "Unesite sifru opet");
SPD(playerid, DIALOG_LOGIN, DIALOG_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");
}
}
}
Re: Ha? -
Micko123 - 15.10.2016
FIXED!
Problem was calling this
PHP код:
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
under DIALOG_LOGIN and calling it OnPlayerSpawn. I deleted it from DIALOG_LOGIN and it is fixed now
Re: Ha? -
Logic_ - 15.10.2016
Quote:
Originally Posted by Gotham
299+ skins are not there ....
|
Wow you are living in 0.3z's time...
Re: Ha? -
Gotham - 15.10.2016
Quote:
Originally Posted by ALiScripter
Wow you are living in 0.3z's time...
|
Lol Now it's there ? I don't know XD