[Ajuda] Sу aparece o id 0?
#1

Criei isso aqui, mas na frente do nome do player, sу mostra o id 0, sendo que meu id й outro, o que tem de errado?

PHP код:
COMMAND:participantes(playeridparams[])
{
    
// Setup local variables
    
new Name[24], MemberList[2000], Convoy;
    
// Send the command to all admins so they can see it
    
SendAdminText(playerid"/participantes"params);
    
// Check if the player has logged in
    
if (APlayerData[playerid][LoggedIn] == true)
    {
        
        
// Check if the member is in a convoy
        
if (APlayerData[playerid][InConvoy] == true)
        {
            
            
// Get the convoyID of the member
            
Convoy APlayerData[playerid][ConvoyID];
            
// Loop through all members
            
for (new iCONVOY_MAX_MEMBERSi++)
            {
                
                
// Check if this player is connected
                
if (IsPlayerConnected(i))
                {
                    
                    if (
AConvoys[Convoy][Members][i] != -1// Check if this member-spot is occupied
                    
{
                        
                        
// Get the name of the member
                        
GetPlayerName(AConvoys[Convoy][Members][i], Namesizeof(Name));
                        
// Add the membernames to the list
                        
format(MemberList2000"%s%s (ID: %i)\n"MemberListNamei);
                    }
                }
                
ShowPlayerDialog(playeridDialogConvoyMembersDIALOG_STYLE_MSGBOX"Membros do comboio"MemberList"OK""");
            }
        }
        else
        
SendClientMessage(playerid0xFF0000FF"Nгo йs do comboio.");
    }
    else
    return 
0;
    return 
1;

Reply


Messages In This Thread
Sу aparece o id 0? - by AndersonAq - 11.11.2013, 16:11
Re: Sу aparece o id 0? - by Kimossab - 11.11.2013, 18:58
Re: Sу aparece o id 0? - by Chazika - 11.11.2013, 19:04

Forum Jump:


Users browsing this thread: 1 Guest(s)