SA-MP Forums Archive
SLOVED - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SLOVED (/showthread.php?tid=101923)



SLOVED - krisko_g1 - 12.10.2009

SLOVED


Re: 2 errors in cmd script - Peter_Corneile - 12.10.2009

pawn Код:
#include <a_samp>
#define TEAM_HUMAN_COLOR 0x33AA33AA

public OnPlayerCommandText(playerid, cmdtext[])
{
 new cmd[256];

 if(strcmp(cmd, "/r", true) == 0)
 {


  if(IsPlayerConnected(playerid))
  {
    new string[128], sendername[MAX_PLAYER_NAME], idx;
    GetPlayerName(playerid, sendername, sizeof(sendername));
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
      idx++;
    }
    new offset = idx;
    new result[64];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
      result[idx - offset] = cmdtext[idx];
      idx++;
    }
    result[idx - offset] = EOS;
    if(!strlen(result))
    {
      SendClientMessage(playerid,0x33AA33AA, "USAGE: /r [radio chat]");
      return 1;
    }
    format(string, sizeof(string), "CB Radio: %s says: %s", sendername, result);
    SendClientMessageToAll(0x33AA33AA,string);
    printf("%s", string);
    return 1;
    }
 }
 return 0;
 }



Re: SLOVED - krisko_g1 - 12.10.2009

thenks finaly someone thath helps noob scipter like me


Re: SLOVED - Peter_Corneile - 12.10.2009

No problem lol


Re: SLOVED - Eazy_Efolife - 12.10.2009

Please change the topic name back because people who search, arent going to find it. and post another topic with the same question..


Re: SLOVED - Peter_Corneile - 12.10.2009

Quote:
Originally Posted by Compton's Eazy E
Please change the topic name back because people who search, arent going to find it. and post another topic with the same question..
I agree


Re: SLOVED - Jose 510 - 12.10.2009

Quote:
Originally Posted by Peter Corneile [hugu-hosting.co.uk
]
Quote:
Originally Posted by Compton's Eazy E
Please change the topic name back because people who search, arent going to find it. and post another topic with the same question..
I agree
Yeah just put [Solved] then the original name of the question/topic


Re: SLOVED - Hiitch - 12.10.2009

Unless they look for sloved in search...


Re: SLOVED - Peter_Corneile - 12.10.2009

Quote:
Originally Posted by [NaB
Hiitch - No srsly, Im a NaB ! ]
Unless they look for sloved in search...
No-one would do that lol


Re: SLOVED - Abernethy - 12.10.2009

Quote:
Originally Posted by ►Peter Corneile◄ [hugu-hosting.co.uk
]
Quote:
Originally Posted by [NaB
Hiitch - No srsly, Im a NaB ! ]
Unless they look for sloved in search...
No-one would do that lol
Especially when it's misspelt. lol.