Client Crash when opening dialog, Code wrong?
#1

Hello,

My client crashes when I do this command:
pawn Код:
command(roadblock, playerid, params[])
{
    //if PD/FD/DOC CHECK
    new RoadBlockString[256];
    for(new i = 0; i < sizeof(RoadblockObjects); i++){
        format(RoadBlockString, sizeof(RoadBlockString), "%s%s", RoadBlockString, RoadblockObjects[i][1]);
    }
    ShowPlayerDialog(playerid, DIALOG_ROADBLOCKS, DIALOG_STYLE_LIST, "{FFFFFF}RoadBlocks", RoadBlockString, "Deploy", "Cancel");
    return 1;
}
The RoadblockObjects is this:
pawn Код:
new RoadblockObjects[][] =
{
    {2899, "Short Spikestrip"},{2892, "Long Spikestrip"},{1427, "Small Barrier"},{1424, "Medium Barrier"},
    {973, "Large Barrier"},{1238, "Traffic Cone"},{1237, "Water Cone"},{19425, "Speedbump"},
    {1422, "Small 2 blocks"},{1425, "Detour Sign"},{19834, "Police Tape"},{8674, "Big Fence"},
    {19972, "Road Closed Sign"},{3091, "Line Closed Sign"}
};
Did I fuck something up?
Reply


Messages In This Thread
Client Crash when opening dialog, Code wrong? - by Stefand - 26.04.2016, 21:34
Re: Client Crash when opening dialog, Code wrong? - by Stefand - 26.04.2016, 21:39

Forum Jump:


Users browsing this thread: 1 Guest(s)