5 errors. (again, this time with /b)
#3

pawn Код:
if(strcmp(cmdtext, "/b", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new sendername[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
GetPlayerName(playerid, sendername, MAX_PLAYER_NAME);
for (new i = 0; i < MAX_PLAYER_NAME; i++)
if (sendername[i] == '_')
sendername[i] = ' ';
new offset = idx;
new result[96];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /b [local ooc chat]");
return 1;
}

ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
}
return 1;
}
Reply


Messages In This Thread
5 errors. (again, this time with /b) - by davelord - 02.04.2011, 12:05
Re: 5 errors. (again, this time with /b) - by Jeffry - 02.04.2011, 12:12
Re: 5 errors. (again, this time with /b) - by xir - 02.04.2011, 12:12
Re: 5 errors. (again, this time with /b) - by davelord - 02.04.2011, 12:19
Re: 5 errors. (again, this time with /b) - by Jeffry - 02.04.2011, 12:26
Re: 5 errors. (again, this time with /b) - by davelord - 02.04.2011, 12:27
Re: 5 errors. (again, this time with /b) - by Jeffry - 02.04.2011, 12:41
Re: 5 errors. (again, this time with /b) - by davelord - 02.04.2011, 12:52
Re: 5 errors. (again, this time with /b) - by Jeffry - 02.04.2011, 13:04
Re: 5 errors. (again, this time with /b) - by davelord - 02.04.2011, 13:06
Re: 5 errors. (again, this time with /b) - by SchurmanCQC - 02.04.2011, 13:08
Re: 5 errors. (again, this time with /b) - by bijoyekuza - 02.04.2011, 13:08
Re: 5 errors. (again, this time with /b) - by davelord - 02.04.2011, 13:09
Re: 5 errors. (again, this time with /b) - by Jeffry - 02.04.2011, 13:11
Re: 5 errors. (again, this time with /b) - by davelord - 02.04.2011, 13:12
Re: 5 errors. (again, this time with /b) - by SchurmanCQC - 02.04.2011, 13:14
Re: 5 errors. (again, this time with /b) - by Jeffry - 02.04.2011, 13:16
Re: 5 errors. (again, this time with /b) - by davelord - 02.04.2011, 13:23
Re: 5 errors. (again, this time with /b) - by Jeffry - 02.04.2011, 13:26
Re: 5 errors. (again, this time with /b) - by davelord - 02.04.2011, 13:34
Re: 5 errors. (again, this time with /b) - by SchurmanCQC - 02.04.2011, 13:36
Re: 5 errors. (again, this time with /b) - by davelord - 02.04.2011, 13:40
Re: 5 errors. (again, this time with /b) - by Jeffry - 03.04.2011, 16:53
Re: 5 errors. (again, this time with /b) - by SlashPT - 03.04.2011, 17:10
Re: 5 errors. (again, this time with /b) - by admantis - 03.04.2011, 17:29
Re: 5 errors. (again, this time with /b) - by SlashPT - 03.04.2011, 17:51

Forum Jump:


Users browsing this thread: 3 Guest(s)