23.11.2010, 01:08
sorry but this is the crashing line..
i left out al the strcats but this and when i put it in it crashed.
pawn Код:
strcat(str, "~n~~y~/G (Msg)~w~ - Send A Group Message", sizeof(str));
pawn Код:
CMD:groupinfo(playerid,params[])
{
new str[1024];
format(str,sizeof(str),"~y~/Groupcreate (name)~w~ - Create A New Group");
strcat(str, "~n~~y~/Groupleave~w~ - Leave Your Group", sizeof(str));
strcat(str, "~n~~y~/Groupinvite~w~ - Invite A Player To Join", sizeof(str));
strcat(str, "~n~~y~/Groupkick (id/nick)~w~ - Kick A Player (Leader)", sizeof(str));
strcat(str, "~n~~y~/Grouplist~w~ - List Group Members", sizeof(str));
strcat(str, "~n~~y~/Groupcall~w~ - Call Group Members", sizeof(str));
strcat(str, "~n~~y~/G (Msg)~w~ - Send A Group Message", sizeof(str));
/*strcat(str, "~n~~y~/Groupname (Name)~w~ - Change The Name Of Your Group", sizeof(str));
strcat(str, "~n~~y~/Grouprank (rank=0-6) (Rank Name)~w~ - Change The Name Of A Rank (Leader)", sizeof(str));
print("Strcat8");
strcat(str, "~n~~y~/Setrank (id/nick) (rank=0-5)~w~ - Set A Player's Rank", sizeof(str));
print("Strcat9");
strcat(str, "~n~~y~/Getmotd~w~ - Get Your Group MOTD", sizeof(str));
print("Strcat10");
strcat(str, "~n~~y~/Motd~w~ - Set The MOTD Of Your Group(Rank 5+)", sizeof(str));
print("Strcat11");
strcat(str, "~n~~y~/Togglegroupchat~w~ - Turn Group Chatting On/Off (Leader)", sizeof(str));
print("Strcat12");
strcat(str, "~n~~y~/Groups~w~ - List Active Groups", sizeof(str));
print("Strcat13");
strcat(str, "~n~~y~/Groupleader (id/nick)~w~ - Transfer Ownership", sizeof(str));
print("Strcat14");
strcat(str, "~n~~n~ ~w~Visit ~b~http://www.Lasventuras.net~w~ For A Complete~n~ List And More Information", sizeof(str));
print("Strcat15");
strcat(str, " ~w~Press ~y~LMB~w~ To Close This Box", sizeof(str));
print("Strcat16");
*/
TextDrawSetString(GroupText,str);
print("GroupText String Setted");
TextDrawShowForPlayer(playerid,GroupBox);
print("Group Box Showed");
TextDrawShowForPlayer(playerid,GroupText);
print("Group Text Showed");
TextDrawShowForPlayer(playerid,GroupHeader);
print("Group Header Showed");
SetTimerEx("HideDraw", 20000, false, "i", playerid);
print("Command Succesfully Executed.");
return 1;
}

