SA-MP Forums Archive
Bot nгo conecta.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: Bot nгo conecta.. (/showthread.php?tid=184242)



Bot nгo conecta.. - rafa3dify - 18.10.2010

Eae pessoal, olha eu aqui denovo hehe
Eu gravei um bot, e instalei certinho, so que nгo quer funcionar, nгo sei porque, olha:

pawn Код:
//topo

new carro2;

//ongamemode

ConnectNPC("motorista1","linha1");
carro2 = AddStaticVehicle(437,423.6150,-1775.7356,5.4139,269.7897,86,86);

//onplayerspaw

if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
    {
        new npcname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
        if(!strcmp(npcname, "motorista1", true)) //Checking if the NPC's name is MyFirstNPC
        {
        PutPlayerInVehicle(playerid, carro2, 0); //Putting the NPC into the vehicle we created for it.
        busao = Create3DTextLabel( "INICIANTE - AGENCIA EMPREGO LS - CONDOMINIO LS", verde, 0.0, 0.0, 0.0, 50.0, 0, 1 );
        Attach3DTextLabelToVehicle( busao, carro2, 0.0, 0.0, 2.0);
        }
        return 1;
    }


Como pode ver, ele nгo ta conectado, nao sei porque;


Re: Bot nгo conecta.. - rafa3dify - 21.10.2010

Error resolvido...xD