dialog
#1

i have this but given me one error.how to fix it?
PHP код:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Ranks",""COL_WHITE"0 - Newcomer ("#RANK_0_SCORE" score)"COL_GREEN"\n1 - Halfcompiled ("#RANK_1_SCORE" score)\n2 - Trained ("#RANK_2_SCORE" score)\n3 - Semi-skilled ("#RANK_3_SCORE" score)\n4 - Expert ("#RANK_4_SCORE" score)\n5 - Assistant ("#RANK_5_SCORE" score)\n6 - Master ("#RANK_6_SCORE" score)\n7 - Class C ("#RANK_7_SCORE" score)\n8 - Class B ("#RANK_8_SCORE" score)\n9 - Class A ("#RANK_9_SCORE" score)\n10 - Super professional ("#RANK_10_SCORE" score)","OK",""); 
PHP код:
C:\Users\Aref\Desktop\Aref\sampserver\pawno\CODv2.pwn(1978) : error 075input line too long (after substitutions
Reply
#2

use strcat: https://sampwiki.blast.hk/wiki/Strcat

new code:
PHP код:
new Handle[1036]'
strcat(Handle,""COL_WHITE"0 - Newcomer ("#RANK_0_SCORE" score)"COL_GREEN"\n1 - Halfcompiled ("#RANK_1_SCORE" score)\n2 - Trained ("#RANK_2_SCORE" score)\n3 - Semi-skilled ("#RANK_3_SCORE" score)\n");
strcat(Handle,"4 - Expert ("#RANK_4_SCORE" score)\n5 - Assistant ("#RANK_5_SCORE" score)\n6 - Master ("#RANK_6_SCORE" score)\n7 - Class C ("#RANK_7_SCORE" score)\n8 - Class B ("#RANK_8_SCORE" score)\n9 - Class A ("#RANK_9_SCORE" score)\n10 - Super professional ("#RANK_10_SCORE" score)");
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Ranks",Handle,"OK",""); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)