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

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.
Reply
#22

" Stupid people. " I'm new here, and I just did what Jeffry told me to do, how can I be stupid?
Reply
#23

O.o
Give me your full code in a PM. Upload it at www.pastebin.com then I can fix it. Will be faster.
Reply
#24

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
Reply
#25

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.
Reply
#26

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)