[Problema] Convertir a zcmd
#1

Me salen estos errores que estoy haciendo mal?
(365 : error 035: argument type mismatch (argument 1)
(3659) : error 035: argument type mismatch (argument 1)

este es el comando a convertir
PHP код:
                    else if (strfind(cmdtext"/Crear Garage "true) == 0)
                    {
                           
MsgAdminUseCommands(9playeridcmdtext);
                        if ( 
PlayersData[playerid][Admin] >= )
                        {
                            new 
idcasa strval(cmdtext[GetPosSpace(cmdtext2)]);
                            new 
tipo strval(cmdtext[GetPosSpace(cmdtext3)]);
                            if ( 
idcasa && idcasa <= MAX_HOUSE )
                            {
                                if ( 
tipo>= && tipo <= MAX_GARAGE_TYPE )
                                {
                                    if ( 
CreateGarage(playeridIdHouseTypeGarageS) )
                                    {
                                        new 
MsgChangeDesing[MAX_TEXT_CHAT];
                                        
format(MsgChangeDesingsizeof(MsgChangeDesing), "Creaste un garage tipo [%i], para la Casa ID[%i] "tipoidcasa);
                                        
SendInfoMessage(playerid2"0"MsgChangeDesing);
                                    }
                                }
                                else
                                {
                                    
SendInfoMessage(playerid0"680""El ID del tipo de garage introducido no existe!");
                                }
                            }
                            else
                            {
                                
SendInfoMessage(playerid0"1170""El ID de casa introducido no existe!");
                            }
                        }
                    } 
comando que hice
PHP код:
CMD:creargarage(playeridparams[])
{
    new 
idcasa GetPosSpace//Error 1
    
new tipo GetPosSpace//error 2
    
if(PlayerInfo[playerid][pAdmin] < 2015) return 0;
    if(
sscanf(params"ii"idcasatipo)) return SendClientMessage(playeridCOLOR_RED"Uso /creargarage [CASA_ID][TIPO]");
    {
        if ( 
tipo >= && tipo <= MAX_GARAGE_TYPE )
        {
            if ( 
CreateGarage(playerididcasatipo) )
            {
                   new 
MsgChangeDesing[MAX_TEXT_CHAT];
                 
format(MsgChangeDesingsizeof(MsgChangeDesing), "Creaste un garage tipo [%i], para la Casa ID[%i]"tipoidcasa);
            }
        }
        else
        {
            
SendClientMessage(playerid,-1,"El ID del tipo de garage introducido no existe!");
        }
    }
return 
1;

y esta es la funcion que estan ahi
PHP код:
forward GetPosSpace(text[], option)
public 
GetPosSpace(text[], option)
{
    new 
SavePos = -1;
    for (new 
1<= optioni++)
    {
        
SavePos strfind(text" "falseSavePos 1);
    }
    return 
SavePos;

Reply


Messages In This Thread
[Problema] Convertir a zcmd - by AxelE123 - 05.07.2017, 03:29
Re: [Problema] Convertir a zcmd - by BrianFaria - 05.07.2017, 03:46
Respuesta: Re: [Problema] Convertir a zcmd - by FixFl0w - 05.07.2017, 03:59
Respuesta: [Problema] Convertir a zcmd - by AxelE123 - 05.07.2017, 18:16
Re: [Problema] Convertir a zcmd - by FelipeBlanco - 05.07.2017, 18:51
Respuesta: [Problema] Convertir a zcmd - by AxelE123 - 05.07.2017, 20:32

Forum Jump:


Users browsing this thread: 2 Guest(s)