17.01.2011, 18:41
can someone tell me why this is crashing now?
pawn Код:
if (strcmp("/anim", cmdtext, true) == 0)
{
//OnPlayerCommandText
new Anims[1024] = "{A9C9A4}/wank {A68064}to have some fun\n{A9C9A4}/tai {A68064}to do some taichi\n";
strcat(Anims, "{A9C9A4}/dance1 {A68064}to dance\n{A9C9A4}/dance2 {A68064}to strip\n");
strcat(Anims, "{A9C9A4}/handsup {A68064}to surrender\n{A9C9A4}/smoke {A68064}to smoke a cigaret\n");
strcat(Anims, "{A9C9A4}/wave1 {A68064}to wave\n{A9C9A4}/wave2 {A68064}to wave (a bit gay for men)\n");
strcat(Anims, "{A9C9A4}/point {A68064}to point at someone\n{A9C9A4}/relax {A68064}to relax\n{A9C9A4}/threat {A68064}to point a weapon a someone's head");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "{800000}Animations {855E42}(type in:)",Anims, "Ok", "Close");
return 1;
}
//cause this is the code above and this one is working
if (strcmp("/cmd", cmdtext, true) == 0)
{
new Cmds[1024] = "{A9C9A4}/rules {A68064}to view the server rules\n{A9C9A4}/info {A68064}to read a introduction how to play\n";
strcat(Cmds, "{A9C9A4}/about {A68064}to view the server information\n{A9C9A4}/stats {A68064}to view your game statistic\n");
strcat(Cmds, "{A9C9A4}/kill {A68064}to kill yourself\n{A9C9A4}/classselect {A68064}to return to the class selection\n");
strcat(Cmds, "{A9C9A4}/mapi {A68064}to view the current maps information \n{A9C9A4}/anim {A68064}to view the available animation commands\n");
strcat(Cmds, "{A9C9A4}/inv {A68064}to view your inventory\n{A9C9A4}/drug {A68064}to take an ecstasy pill\n{A9C9A4}/q {A68064}to quit the game");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX,"{800000}Commands {855E42}(type in:)",Cmds, "Ok", "Close");
return 1;
}