[AJUDA] OnPlayerCommandText
#1

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
        if(
strcmp("/hqadmin"cmdtexttrue10)] == 0);
        {
           if(
IsPlayerConnected(playerid));
           {
                if 
PlayerInfo[playerid][pAdmin] >= 1);
                }
                if(
admtrampando[playerid] < && PlayerInfo[playerid][pAdmin] != 1342 && PlayerInfo[playerid][pAdmin] != 1341)
                {
                
MSGPLAYER(playeridCOLOR_YELLOW"Vocк nгo estб trabalhando! (/pa)");
                return 
1;
                }
                if (
GetPlayerState(playerid) == 2);
                {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcar229.359,-1807.635,4.141); LinkVehicleToInterior(tmpcar0);
                }
                 else
                {
                
SetPlayerPos(playerid229.359,-1807.635,4.141);
                
SetPlayerFacingAngle(playerid90);
                
SendClientMessage(playeridCOLOR_GREEN"Bem Vindo");
                return 
1;
     }

PHP код:
C:\Documents and Settings\Cliente\Desktop\Tiger_xD\filterscripts\theus.pwn(378) : error 001expected token")"but found "]"
C:\Documents and Settings\Cliente\Desktop\Tiger_xD\filterscripts\theus.pwn(378) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Cliente\Desktop\Tiger_xD\filterscripts\theus.pwn(378) : error 029invalid expressionassumed zero
C
:\Documents and Settings\Cliente\Desktop\Tiger_xD\filterscripts\theus.pwn(378) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Naum to conseguindo tirar este error pf me ajuuda grato !
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/hqadmin", cmdtext, true, 10) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if PlayerInfo[playerid][pAdmin] >= 1)
                if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342 && PlayerInfo[playerid][pAdmin] != 1341)
                    return MSGPLAYER(playerid, COLOR_YELLOW, "Vocк nгo estб trabalhando! (/pa)");


            if (GetPlayerState(playerid) == 2)
            {
                new tmpcar = GetPlayerVehicleID(playerid);
                SetVehiclePos(tmpcar, 229.359,-1807.635,4.141); LinkVehicleToInterior(tmpcar, 0);
            }
            else
            {
                SetPlayerPos(playerid, 229.359,-1807.635,4.141);
                SetPlayerFacingAngle(playerid, 90);
                SendClientMessage(playerid, COLOR_GREEN, "Bem Vindo");
                return 1;
            }
        }
    }
        return 0;
}
Reply
#3

if(strcmp("/hqadmin", cmdtext, true, 10)] == 0)
olhe o erro ali
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/hqadmin", cmdtext, true, 10) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if PlayerInfo[playerid][pAdmin] >= 1)
                if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342 && PlayerInfo[playerid][pAdmin] != 1341)
                    return MSGPLAYER(playerid, COLOR_YELLOW, "Vocк nгo estб trabalhando! (/pa)");


            if (GetPlayerState(playerid) == 2)
            {
                new tmpcar = GetPlayerVehicleID(playerid);
                SetVehiclePos(tmpcar, 229.359,-1807.635,4.141); LinkVehicleToInterior(tmpcar, 0);
            }
            else
            {
                SetPlayerPos(playerid, 229.359,-1807.635,4.141);
                SetPlayerFacingAngle(playerid, 90);
                SendClientMessage(playerid, COLOR_GREEN, "Bem Vindo");
                return 1;
            }
        }
    }
        return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)