Pawn crashes
#1

pawn Код:
ShowPlayerDialog(playerid, STOREMENU, DIALOG_STYLE_LIST, "Kaufmenь", "Ђ65\t\t"PLAVA"Handy\nЂ25\t\t"PLAVA"Telefonbuch\nЂ1\t\t"PLAVA"Wьrfel\nЂ10\t\t"PLAVA"Kondom\nЂ20\t\t"PLAVA"Radio\nЂ15\t\t"PLAVA"Seil\nЂ10\t\t"PLAVA"Messer\nЂ50\t\t"PLAVA"Kamera\nЂ15\t\t"PLAVA"Blummen\nЂ3\t\t"PLAVA"Sprunk\nЂ5\t\t"PLAVA"Zigaretten\nЂ75\t\t"PLAVA"Erste Hilfe\nЂ150\t\t"PLAVA"Player Finder\nЂ30\t\t"PLAVA"Haken\nЂ20\t\t"PLAVA"Feuerzeug\nЂ25\t\t"PLAVA"Guthaben\nЂ50\t\t"PLAVA"Guthaben\nЂ100\t\t"PLAVA"Guthaben\nЂ200\t\t"PLAVA"Guthaben\nЂ5\t\t"PLAVA"Kaugummis", "Kaufen", "Abbrechen");
What should i do to fix it? my pc started lagging when the pawno crashed i almost freaked out
Reply
#2

Too much text. Use strcat:
pawn Код:
new
    string[500];
strcat(string, "Ђ65\t\t"PLAVA"Handy\nЂ25\t\t"PLAVA"Telefonbuch\nЂ1\t\t"PLAVA"Wьrfel\nЂ10\t\t"PLAVA"Kondom\nЂ20\t\t"PLAVA"Radio\nЂ15\t\t"PLAVA"Seil\nЂ10\t\t"PLAVA"Messer\nЂ50\t\t"PLAVA"Kamera\nЂ15\t\t"PLAVA"Blummen\nЂ3\t\t"PLAVA"Sprunk\nЂ5\t\t"PLAVA"Zigaretten\n");
strcat(string, "Ђ75\t\t"PLAVA"Erste Hilfe\nЂ150\t\t"PLAVA"Player Finder\nЂ30\t\t"PLAVA"Haken\nЂ20\t\t"PLAVA"Feuerzeug\nЂ25\t\t"PLAVA"Guthaben\nЂ50\t\t"PLAVA"Guthaben\nЂ100\t\t"PLAVA"Guthaben\nЂ200\t\t"PLAVA"Guthaben\nЂ5\t\t"PLAVA"Kaugummis");
ShowPlayerDialog(playerid, STOREMENU, DIALOG_STYLE_LIST, "Kaufmenь", string, "Kaufen", "Abbrechen");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)