[AJUDA]Erro
#1

Olha to fazendo um codigo de trocar de skin e tals
Olha ai o code
PHP код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
" Blank Filterscript by your name here");
    print(
"--------------------------------------\n");
    return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;
}
#else
main()
{
    print(
"\n----------------------------------");
    print(
" Blank Gamemode by your name here");
    print(
"----------------------------------\n");
}
public 
OnGameModeInit()
{
    
// Don't use these lines if it's a filterscript
    
SetGameModeText("Blank Script");
    
AddPlayerClass(01958.37831343.157215.3746269.1425000000);
    return 
1;
}
public 
OnGameModeExit()
{
    return 
1;
}
public 
OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746);
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
    return 
1;
}
public 
OnVehicleSpawn(vehicleid)
{
    return 
1;
}
public 
OnVehicleDeath(vehicleidkillerid)
{
    return 
1;
}
public 
OnPlayerText(playeridtext[])
{
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
         if(
strcmp(cmdtext"/294"true) == 0)
        {
                
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                
SetPlayerSkin(playerid294);
                return 
1;
        }
         if(
strcmp(cmdtext"/250"true) == 0)
        {
                
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                
SetPlayerSkin(playerid250);
                return 
1;
        }
        if(
strcmp(cmdtext"/249"true) == 0)
        {
                
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                
SetPlayerSkin(playerid249);
                return 
1;
        }
        if(
strcmp(cmdtext"/248"true) == 0)
        {
                
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                
SetPlayerSkin(playerid248);
                return 
1;
        }
        if(
strcmp(cmdtext"/247"true) == 0)
        {
                
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                
SetPlayerSkin(playerid247);
                return 
1;
        }
        if(
strcmp(cmdtext"/246"true) == 0)
        {
                
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                
SetPlayerSkin(playerid246);
                return 
1;
        }
        if(
strcmp(cmdtext"/245"true) == 0)
        {
                
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                
SetPlayerSkin(playerid245);
                return 
1;
        }
        if(
strcmp(cmdtext"/244"true) == 0)
        {
                
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                
SetPlayerSkin(playerid244);
                return 
1;
        }
        if(
strcmp(cmdtext"/243"true) == 0)
        {
                
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                
SetPlayerSkin(playerid243);
                return 
1;
        }
        if(
strcmp(cmdtext"/242"true) == 0)
        {
                
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                
SetPlayerSkin(playerid242);
                return 
1;
        }
    if(
strcmp(cmdtext"/241"true) == 0)
        {
                
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                
SetPlayerSkin(playerid241);
                return 
1;
        }
    if(
strcmp(cmdtext"/240"true) == 0)
        {
                
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                
SetPlayerSkin(playerid240);
                return 
1;
        }
    if(
strcmp(cmdtext"/254"true) == 0)
        {
                
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                
SetPlayerSkin(playerid254);
                return 
1;
        }
   if(
strcmp(cmdtext"/259"true) == 0)
        {
                
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                
SetPlayerSkin(playerid259);
                return 
1;
        }
   if(
strcmp(cmdtext"/Disfarзe"true) == 0)
    {
        if(
IsPlayerInRangeOfPoint(playerid2.0,1507.8744,-1714.6392,14.0469))
        {
        
SendClientMessage(playerid,0xFF0000AA,"Roupas:");
        
SendClientMessage(playerid,0xFF0000AA,"/259 R$100,00,/254 R$100,00,/240 R$100,00,");
        
SendClientMessage(playerid,0xFF0000AA,"/241 R$100,00,/242 R$100,00,/243 R$100,00");
        
SendClientMessage(playerid,0xFF0000AA,"/244 R$100,00,/245 R$100,00,/246 R$100,00");
        
SendClientMessage(playerid,0xFF0000AA,"/247 R$100,00,/248 R$100,00,/249 R$100,00,/250 R$100,00,Skin hitman /294");
        
SendClientMessage(playerid,0xFF0000AA,"Quer saber qual skin usar??Procure os ids em:https://sampwiki.blast.hk/wiki/Skins:All");
        return 
1;
        }
  return 
0;
 }
 
 
#endif 
Mais fica dando um erro que eu nao consigo tirar:
PHP код:
C:\Documents and Settings\weverton\Meus documentos\samp\filterscripts\hitman.pwn(102) : warning 217loose indentation
C
:\Documents and Settings\weverton\Meus documentos\samp\filterscripts\hitman.pwn(150) : warning 217loose indentation
C
:\Documents and Settings\weverton\Meus documentos\samp\filterscripts\hitman.pwn(168) : warning 217loose indentation
C
:\Documents and Settings\weverton\Meus documentos\samp\filterscripts\hitman.pwn(188) : warning 217loose indentation
C
:\Documents and Settings\weverton\Meus documentos\samp\filterscripts\hitman.pwn(192) : error 030compound statement not closed at the end of file (started at line 90
Deis de ja obrigado
Reply
#2

Poste as linhas acusadas de erro
Reply
#3

pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}


public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}

public OnPlayerConnect(playerid)
{
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}

public OnPlayerSpawn(playerid)
{
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    return 1;
}

public OnVehicleSpawn(vehicleid)
{
    return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
    return 1;
}

public OnPlayerText(playerid, text[])
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
        if(strcmp(cmdtext, "/294", true) == 0)
        {
                SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                SetPlayerSkin(playerid, 294);
                return 1;
        }
        if(strcmp(cmdtext, "/250", true) == 0)
        {
                SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                SetPlayerSkin(playerid, 250);
                return 1;
        }
        if(strcmp(cmdtext, "/249", true) == 0)
        {
                SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                SetPlayerSkin(playerid, 249);
                return 1;
        }
        if(strcmp(cmdtext, "/248", true) == 0)
        {
                SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                SetPlayerSkin(playerid, 248);
                return 1;
        }
        if(strcmp(cmdtext, "/247", true) == 0)
        {
                SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                SetPlayerSkin(playerid, 247);
                return 1;
        }
        if(strcmp(cmdtext, "/246", true) == 0)
        {
                SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                SetPlayerSkin(playerid, 246);
                return 1;
        }
        if(strcmp(cmdtext, "/245", true) == 0)
        {
                SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                SetPlayerSkin(playerid, 245);
                return 1;
        }
        if(strcmp(cmdtext, "/244", true) == 0)
        {
                SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                SetPlayerSkin(playerid, 244);
                return 1;
        }
        if(strcmp(cmdtext, "/243", true) == 0)
        {
                SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                SetPlayerSkin(playerid, 243);
                return 1;
        }
        if(strcmp(cmdtext, "/242", true) == 0)
        {
                SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                SetPlayerSkin(playerid, 242);
                return 1;
        }
        if(strcmp(cmdtext, "/241", true) == 0)
        {
                SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                SetPlayerSkin(playerid, 241);
                return 1;
        }
        if(strcmp(cmdtext, "/240", true) == 0)
        {
                SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                SetPlayerSkin(playerid, 240);
                return 1;
        }
        if(strcmp(cmdtext, "/254", true) == 0)
        {
                SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                SetPlayerSkin(playerid, 254);
                return 1;
        }
        if(strcmp(cmdtext, "/259", true) == 0)
        {
                SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
                SetPlayerSkin(playerid, 259);
                return 1;
        }

        if(strcmp(cmdtext, "/Disfarзe", true) == 0)
        {
            if(IsPlayerInRangeOfPoint(playerid, 2.0,1507.8744,-1714.6392,14.0469))
            {
                SendClientMessage(playerid,0xFF0000AA,"Roupas:");
                SendClientMessage(playerid,0xFF0000AA,"/259 R$100,00,/254 R$100,00,/240 R$100,00,");
                SendClientMessage(playerid,0xFF0000AA,"/241 R$100,00,/242 R$100,00,/243 R$100,00");
                SendClientMessage(playerid,0xFF0000AA,"/244 R$100,00,/245 R$100,00,/246 R$100,00");
                SendClientMessage(playerid,0xFF0000AA,"/247 R$100,00,/248 R$100,00,/249 R$100,00,/250 R$100,00,Skin hitman /294");
                SendClientMessage(playerid,0xFF0000AA,"Quer saber qual skin usar??Procure os ids em:https://sampwiki.blast.hk/wiki/Skins:All");
                return 1;
            }
            return 1;
        }
        return 0;
 }

 #endif

\/
Reply
#4

pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}


main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}


public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}

public OnPlayerConnect(playerid)
{
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}

public OnPlayerSpawn(playerid)
{
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    return 1;
}

public OnVehicleSpawn(vehicleid)
{
    return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
    return 1;
}

public OnPlayerText(playerid, text[])
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/294", true) == 0)
    {
        SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
        SetPlayerSkin(playerid, 294);
        return 1;
    }
    if(strcmp(cmdtext, "/250", true) == 0)
    {
        SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
        SetPlayerSkin(playerid, 250);
        return 1;
    }
    if(strcmp(cmdtext, "/249", true) == 0)
    {
        SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
        SetPlayerSkin(playerid, 249);
        return 1;
    }
    if(strcmp(cmdtext, "/248", true) == 0)
    {
        SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
        SetPlayerSkin(playerid, 248);
        return 1;
    }
    if(strcmp(cmdtext, "/247", true) == 0)
    {
        SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
        SetPlayerSkin(playerid, 247);
        return 1;
    }
    if(strcmp(cmdtext, "/246", true) == 0)
    {
        SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
        SetPlayerSkin(playerid, 246);
        return 1;
    }
    if(strcmp(cmdtext, "/245", true) == 0)
    {
        SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
        SetPlayerSkin(playerid, 245);
        return 1;
    }
    if(strcmp(cmdtext, "/244", true) == 0)
    {
        SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
        SetPlayerSkin(playerid, 244);
        return 1;
    }
    if(strcmp(cmdtext, "/243", true) == 0)
    {
        SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
        SetPlayerSkin(playerid, 243);
        return 1;
    }
    if(strcmp(cmdtext, "/242", true) == 0)
    {
        SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
        SetPlayerSkin(playerid, 242);
        return 1;
    }
    if(strcmp(cmdtext, "/241", true) == 0)
    {
        SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
        SetPlayerSkin(playerid, 241);
        return 1;
    }
    if(strcmp(cmdtext, "/240", true) == 0)
    {
        SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
        SetPlayerSkin(playerid, 240);
        return 1;
    }
    if(strcmp(cmdtext, "/254", true) == 0)
    {
        SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
        SetPlayerSkin(playerid, 254);
        return 1;
    }
    if(strcmp(cmdtext, "/259", true) == 0)
    {
        SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
        SetPlayerSkin(playerid, 259);
        return 1;
    }
    if(strcmp(cmdtext, "/Disfarзe", true) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0,1507.8744,-1714.6392,14.0469))
        {
            SendClientMessage(playerid,0xFF0000AA,"Roupas:");
            SendClientMessage(playerid,0xFF0000AA,"/259 R$100,00,/254 R$100,00,/240 R$100,00,");
            SendClientMessage(playerid,0xFF0000AA,"/241 R$100,00,/242 R$100,00,/243 R$100,00");
            SendClientMessage(playerid,0xFF0000AA,"/244 R$100,00,/245 R$100,00,/246 R$100,00");
            SendClientMessage(playerid,0xFF0000AA,"/247 R$100,00,/248 R$100,00,/249 R$100,00,/250 R$100,00,Skin hitman /294");
            SendClientMessage(playerid,0xFF0000AA,"Quer saber qual skin usar??Procure os ids em:https://sampwiki.blast.hk/wiki/Skins:All");
            return 1;
        }
        return 1;
    }
    return 0;
}
Reply
#5

problema resolvido
Agradeзimento:Caroline e shickcard
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)