Hey Leute,
Ich habe folgendes Dialog in meinem Script:
new nice[] = "blabla";
ShowPlayerDialog(playerid, 5000, DIALOG_STYLE_MSGBOX,"--------- blabla--------",nice,"Starten","Austeigen");
if(dialogid == 5000)
{
if(response ==1)
{
lol1[playerid] =0;
lol2[playerid] =0;
lol3[playerid] =0;
lol4[playerid] =0;
lol5[playerid] =0;
lol6[playerid] =0;
lol7[playerid] =0;
lol8[playerid] =0;
lol9[playerid] =0;
lol10[playerid] =0;
lol11[playerid] =0;
lol12[playerid] =0;
lol13[playerid] =0;
SetPlayerCheckpoint(playerid, 791.94,-1172.04,22.01, 10.0);
GameTextForPlayer(playerid, "~w~Folge den ~r~Checkpoints~w...", 3000, 3);
{
//1 Punkt
{ CreateATrash[playerid][0] = CreatePlayerObject(playerid, 1415, 791.94268798828, -1172.0491943359, 22.012573242188, 0, 355, 90); }
{ CreateATrash[playerid][1] = CreatePlayerObject(playerid, 1440, 791.20184326172, -1170.3405761719, 22.325155258179, 0, 0, 60); }
{ CreateATrash[playerid][2] = CreatePlayerObject(playerid, 1264, 791.95513916016, -1171.76171875, 23.160879135132, 0, 0, 0); }
//2 Punkt
{ CreateATrash[playerid][3] = CreatePlayerObject(playerid, 1415, 823.70965576172, -1333.4846191406, 12.546875, 0, 0, 180); }
{ CreateATrash[playerid][4] = CreatePlayerObject(playerid, 1338, 822.02233886719, -1333.349609375, 13.258184432983, 0, 0, 330); }
{ CreateATrash[playerid][5] = CreatePlayerObject(playerid, 1299, 821.03729248047, -1335.9500732422, 13.002735137939, 0, 0, 0); }
{ CreateATrash[playerid][6] = CreatePlayerObject(playerid, 1264, 823.49017333984, -1333.4721679688, 13.507312774658, 0, 0, 0); }
(Geht hier noch ein bisschen weiter aber zu viele Zeichen :()
}
return 1;
}
if(response ==0)
{
TogglePlayerControllable(playerid, 1);
RemovePlayerFromVehicle(playerid);
return 1;
}
}
Unw wenn ich jetzt auf den Starten Button klicke crasht mein Game!
Warum?
Hoffe jm. kann mir helfen!
LG