Help with command error
#1

PHP код:
if(strcmp(cmd"/leavefaction"true) == 0)
    {
         if(
IsPlayerConnected(playerid))
        {
        
PlayerInfo[playerid][pLeader] = 0;
        
PlayerInfo[playerid][pFMember] = 0;
        
PlayerInfo[playerid][pRank] = 0;
        return 
1;
    } 
What is wrong in this command because when i try to compile the gamemode is giving 26 errors
Reply
#2

This should work mate.
pawn Код:
if(strcmp(cmd, "/leavefaction", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        PlayerInfo[playerid][pLeader] = 0;
        PlayerInfo[playerid][pFMember] = 0;
        PlayerInfo[playerid][pRank] = 0;
        return 1;
    }
}
Reply
#3

pawn Код:
if ( strcmp ( cmd , "/leavefaction" , true ) == 0 )
{
    if ( IsPlayerConnected ( playerid ) )
    {
        PlayerInfo[playerid][pLeader] = 0;
        PlayerInfo[playerid][pFMember] = 0;
        PlayerInfo[playerid][pRank] = 0;
    }
    return 1;
}
Reply
#4

In this
PHP код:
    if(strcmp(cmd"/leavefaction"true) == 0)
{
    if(
IsPlayerConnected(para1))
                {
                    if(
para1 != INVALID_PLAYER_ID)
                    {
                        if (
PlayerInfo[para1][pMember] > || PlayerInfo[playerid][pAdmin] >= 1338)
                        {
                            
gTeam[para1] = 3;
                            
PlayerInfo[para1][pTeam] = 3;
                            
PlayerInfo[para1][pMember] = 0;
                            
PlayerInfo[para1][pRank] = 0;
                            
PlayerInfo[para1][pChar] = 0;
                            new 
rand random(sizeof(CIV));
                            
SetSpawnInfo(para1gTeam[para1], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
                            
PlayerInfo[para1][pModel] = CIV[rand];
                            
MedicBill[para1] = 0;
                            
SpawnPlayer(para1);
        return 
1;
    }

Reply
#5

Quote:
Originally Posted by boyan96
Посмотреть сообщение
In this
PHP код:
    if(strcmp(cmd"/leavefaction"true) == 0)
{
    if(
IsPlayerConnected(para1))
                {
                    if(
para1 != INVALID_PLAYER_ID)
                    {
                        if (
PlayerInfo[para1][pMember] > || PlayerInfo[playerid][pAdmin] >= 1338)
                        {
                            
gTeam[para1] = 3;
                            
PlayerInfo[para1][pTeam] = 3;
                            
PlayerInfo[para1][pMember] = 0;
                            
PlayerInfo[para1][pRank] = 0;
                            
PlayerInfo[para1][pChar] = 0;
                            new 
rand random(sizeof(CIV));
                            
SetSpawnInfo(para1gTeam[para1], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
                            
PlayerInfo[para1][pModel] = CIV[rand];
                            
MedicBill[para1] = 0;
                            
SpawnPlayer(para1);
}
}
}
        return 
1;
    

you have to clean it though, hard to do on the forum
Reply
#6

pawn Код:
if ( strcmp ( cmd , "/leavefaction" , true ) == 0 )
{
    if ( IsPlayerConnected ( para 1 ) )
    {
        if ( para1 ! = Invalid_PLAYER_ID )
            {
                if ( PlayerInfo[para1][pMember] > 0 || PlayerInfo[playerid][pAdmin] >=1338 )
                {
                     gTeam[para1] = 3;
                            PlayerInfo[para1][pTeam] = 3;
                            PlayerInfo[para1][pMember] = 0;
                            PlayerInfo[para1][pRank] = 0;
                            PlayerInfo[para1][pChar] = 0;
                            new rand = random(sizeof(CIV));
                            SetSpawnInfo(para1, gTeam[para1], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
                            PlayerInfo[para1][pModel] = CIV[rand];
                            MedicBill[para1] = 0;
                            SpawnPlayer(para1);
                }
            }
    }
    return 1;
}
Fucking +rep me or DIE~! Helped you in both problems. -_-
Reply
#7

It's just pity how you are 'begging' for reputation! People like you will probably never learn, that such a thing should be earned...
Reply
#8

Quote:
Originally Posted by Twisted_Insane
Посмотреть сообщение
It's just pity how you are 'begging' for reputation! People like you will probably never learn, that such a thing should be earned...
Aha, Sir. I have been helping people too much around from 2 days. And thought i must have got some reputation but nope. That's why i am too much frustrated. But what you got with it ? Choose your way. -_-
Reply
#9

Haha, you're making me laugh! Just wait and keep your work up! I once helped people for one week here, and didn't even receive 1 single point. I just continued and never gave up! Don't just talk, work for it!!!!
Reply
#10

Quote:
Originally Posted by Twisted_Insane
Посмотреть сообщение
Haha, you're making me laugh! Just wait and keep your work up! I once helped people for one week here, and didn't even receive 1 single point. I just continued and never gave up! Don't just talk, work for it!!!!
Hm, soft attitude

Thanks , would really do that now :P

LoL! at your story not even a single rep i would have gone mad upon this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)