5 errors. (again, this time with /b) - 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: 5 errors. (again, this time with /b) (
/showthread.php?tid=245892)
Re: 5 errors. (again, this time with /b) -
SchurmanCQC - 02.04.2011
FFS, stupid people these days.
DO NOT PUT TOGETHER A ROLEPLAY SCRIPT IF YOU DONT KNOW HOW TO SCRIPT
Devs, feel free to remove my post if you think its spam.
Re: 5 errors. (again, this time with /b) -
davelord - 02.04.2011
" Stupid people. " I'm new here, and I just did what Jeffry told me to do, how can I be stupid?
Re: 5 errors. (again, this time with /b) -
Jeffry - 03.04.2011
O.o
Give me your full code in a PM. Upload it at
www.pastebin.com then I can fix it. Will be faster.
Re: 5 errors. (again, this time with /b) -
SlashPT - 03.04.2011
this should work i think
pawn Код:
if ( !strcmp ( cmdtext , "/b" , true , 2 ) && cmdtext [ 2 ] == ' ' )
{
if ( strlen ( cmdtext ) == 3 )
{
SendClientMessage ( playerid , 0xFF0000FF , "USAGE: /b [local ooc chat]" ) ;
return 1 ;
}
new
plName [ MAX_PLAYER_NAME ] ,
str [ 128 ] ,
Float:p_x,
Float:p_y,
Float:p_z,
ii
;
GetPlayerPos ( playerid , p_x , p_y , p_z ) ;
GetPlayerName ( playerid , plName , MAX_PLAYER_NAME ) ;
format ( str , 128 , "[OOC-Chat] %s: %s" , plName , cmdtext [ 3 ] ) ;
for ( ii = 0 ; ii < MAX_PLAYERSEX ; ii++ )
{
if ( IsPlayerConnected ( ii ) )
{
if ( IsPlayerInRangeOfPoint ( ii , 20 , p_x , p_y , p_z ) )
{
SendClientMessage ( ii , COLOR_FADE1 , str ) ;
}
}
}
return 1;
}
yea i didn't used ProxDetector as i don't have it nor i don't like it :P
Re: 5 errors. (again, this time with /b) -
admantis - 03.04.2011
pawn Код:
CMD:b(playerid, params[])
{
new szString[128], szName[28], szMsg[128];
if (sscanf(params, "s[128]", szMsg)) return 0;
GetPlayerName(playerid, szName, 28);
format(szString, 128, " (( %s(%d): %s ))", szName, playerid, szMsg);
ProxDetector(playerid, 10, szString, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF);
return 1;
}
And only nine lines.
Easy.
Re: 5 errors. (again, this time with /b) -
SlashPT - 03.04.2011
Quote:
Originally Posted by davelord
Still;
|
Quote:
Originally Posted by admantis
pawn Код:
CMD:b(playerid, params[]) { new szString[128], szName[28], szMsg[128]; if (sscanf(params, "s[128]", szMsg)) return 0; GetPlayerName(playerid, szName, 28); format(szString, 128, " (( %s(%d): %s ))", szName, playerid, szMsg); ProxDetector(playerid, 10, szString, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF); return 1; }
And only nine lines.
Easy.
|
yeah but the problem it's that he doesn't even know how to put ProxDetector on the script..
because that i wrote that long func xD