08.06.2010, 19:17
Quote:
Originally Posted by billiout
1.
im not sure because im new on scripting too but use instead of strlen the 3 number of your letters Код:
if(!strcmp(cmdtext, "/do", true, 3)) { if (!cmdtext[3]) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /do [Situation]"); new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof name); format(cmdtext, 128, "* %s ( %s ) ", cmdtext[4], name ); new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); for(new i, m = GetMaxPlayers(); i < m; i++) if (IsPlayerConnected(i)) { if (IsPlayerInRangeOfPoint(i, 15.0, x, y, z)) SendClientMessage(i, COLOR_PURPLE, cmdtext); } return 1; } |
Please help me and if you can edit my script (on the second problem) so its works.
PS - Oh and please dont give not tested and not working scripts, this doesnt helps almost nobody (especelly newbies)