SA-MP Forums Archive
help script for group - 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)
+--- Thread: help script for group (/showthread.php?tid=593941)



help script for group - 1proplayer1 - 11.11.2015

HELLO GUYS
can you help me

Invite player members not work please help me

sorry for my bad English



PHP код:
CMD:ginviteplayeridparams[ ] )
{
    if ( 
PlayerInfoplayerid ][ GRank ] != && PlayerInfoplayerid ][ GRank ] != 10 )
        return 
SendClientMessageplayerid0xFF0000FF"You need rank 5 to acces this command" );
    new 
PlayerOptionalMessage128 ];
    if ( 
sscanfparams"uS(Come to my group)[128]"PlayerOptionalMessage ) )
        return 
SendClientMessageplayerid0xFF0000FF"USAGE: {FFFF00}/ginvite [PlayerID] <Message>" );
    if ( !
IsPlayerConnectedPlayer ) )
        return 
SendErrorplayerid"Player not connected!" );
    if ( 
PlayerInfoPlayer ][ GID ] != )
        return 
SendErrorplayerid"Player is already in a group!" );
    if ( 
PlayerInfoPlayer ][ Ignore_group_Invite ] == )
        return 
SendErrorplayerid"Player have /ici activated! Can't get any invitations in groups!" );
    
gsString] = EOS;
    
formatgsStringsizeofgsString ),  "~r~Invitation send to ID: ~h~~y~%d"Player );
    
AnnounceplayeridgsString4000);
    new 
pField50 ], xgroupScores;
    
formatgsQuery128"SELECT * FROM `groups` WHERE `id` = '%d'"PlayerInfoplayerid ][ GID ] );
    
mysql_querygsQuery );
    
mysql_store_result( );
    if ( 
mysql_retrieve_row( ) )
    {
        
mysql_get_field"GScore"pField ); xgroupScores strvalpField );
        
mysql_get_field"name"pField );
    }
    
mysql_free_result( );
    
FormatMSGPlayerCOLOR_ORANGE""W"The leader {FF0000}%s"W" of {FF0000}%s"W" group send you an invitation in his group.\n"W"group has %d scores.\n\nInviation Message: {FF0000}%s\n\nDo you want to be a member of {FF0000}%s"W" group? /accept to accept and /deny to deny"PlayerNameplayerid ), pFieldxgroupScoresOptionalMessagepField );
    
InvitedGroupIDPlayer ] = playerid;
    return ( 
);




Re: help script for group - 1proplayer1 - 11.11.2015

please help me :/


Re: help script for group - 1proplayer1 - 11.11.2015

Need for help :/


Re: help script for group - 1proplayer1 - 11.11.2015

:/ i neeeed help please all members can you help me


Re: help script for group - 1proplayer1 - 11.11.2015

please help me :/


Re: help script for group - itsCody - 11.11.2015

What the fuck is
PHP код:
if ( sscanfparams"uS(Come to my group)[128]"PlayerOptionalMessage ) ) 
try
PHP код:
if ( sscanfparams"uS[128]"PlayerOptionalMessage ) ) 
Also you haven't given enough information.
Errors? If so what do they say?


Re: help script for group - 1proplayer1 - 11.11.2015

Quote:
Originally Posted by itsCody
Посмотреть сообщение
What the fuck is
PHP код:
if ( sscanfparams"uS(Come to my group)[128]"PlayerOptionalMessage ) ) 
try
PHP код:
if ( sscanfparams"uS[128]"PlayerOptionalMessage ) ) 
tnx bro im test it