21.07.2015, 19:07
After 4 hours of crying (angry) and debugging i found out the problem of pawno crash
is this dialog:
How is possible becuase of 10 rows in dialog to crash?
is this dialog:
pawn Код:
if(strcmp("/jobs", cmdtext, true) == 0)
{
if(PlayerToPoint(3.0,playerid,362.2191,173.7529,1008.3828))
{
new stringx[956];
format(stringx,sizeof(stringx), "Numele\tOcupatie\
\n {9E9E9E}* Arms dealer\t{94CD4B}Traficul de arme\
\n {9E9E9E}* Farmer\t{94CD4B}Strвngerea recoltei\
\n {9E9E9E}* Detectiv\t{94CD4B}Investigatia\
\n {9E9E9E}* Remorcher\t{94CD4B}Ridicг vehicule\
\n {9E9E9E}* Electronist\t{94CD4B}Reparг electronice\
\n {9E9E9E}* Gunoier\t{94CD4B}Curгtг strгzile\
\n {9E9E9E}* Miner\t{94CD4B}Mineazг\
\n {9E9E9E}* Chelner\t{94CD4B}Servire pe plajг\
\n {9E9E9E}* Conductor\t{94CD4B}Transport pers\
\n {9E9E9E}* Trucker\t{94CD4B}Transportг marfг"); < --- becuase of this one to be more exactly
ShowPlayerDialog(playerid, DIALOG_JOBS, DIALOG_STYLE_TABLIST_HEADERS,"{9E9E9E}Listг slujbe {94CD4B}(10 in total){9E9E9E}",stringx ,"Contract", "Cancel");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Nu esti la primгrie.");
return 1;
}
}