Pawno crashes pls tell me the error
#2

No, but its to long :P Use strcat:

here i'll do it for you:

Код:
new Cmds[1024] =  "{800000}Commands {855E42}(type in:), {855E42}/rules {A68064}to view the server rules\n{855E42}/info {A68064}to read a introduction how to play\n";
strcat(Cmds, "{855E42}/about {A68064}to view the server information\n{855E42}}/stats {A68064}to view your game statistic\n\");
strcat(Cmds, "855E42}/kill {A68064}to kill yourself\n{855E42}/classselect {A68064}to return to the class selection\n");
strcat(Cmds, "{855E42}/mapi {A68064}to view the current maps information \n{855E42}/anim {A68064}to view the available animation commands\n");
strcat(Cmds, "{855E42}/q {A68064}to quit the game");
//^Put this under OnPlayerCommandText

if (strcmp("/cmd", cmdtext, true) == 0)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX,"Commands",Cmds, "Ok, "Close");
return 1;
}
Also, it was a to long string. Thats why it crashed.
Reply


Messages In This Thread
Pawno crashes pls tell me the error - by BlackWolf120 - 14.01.2011, 14:37
Re: Pawno crashes pls tell me the error - by [SU]Balli - 14.01.2011, 14:50
Re: Pawno crashes pls tell me the error - by BlackWolf120 - 15.01.2011, 23:02
Re: Pawno crashes pls tell me the error - by Joe Staff - 15.01.2011, 23:11
Re: Pawno crashes pls tell me the error - by BlackWolf120 - 15.01.2011, 23:16
Re: Pawno crashes pls tell me the error - by BlackWolf120 - 17.01.2011, 18:41
Re: Pawno crashes pls tell me the error - by BlackWolf120 - 17.01.2011, 18:51
Re: Pawno crashes pls tell me the error - by Stylock - 17.01.2011, 18:57
Re: Pawno crashes pls tell me the error - by BlackWolf120 - 17.01.2011, 19:12
Re: Pawno crashes pls tell me the error - by legodude - 18.01.2011, 17:13

Forum Jump:


Users browsing this thread: 3 Guest(s)