03.02.2017, 20:07
Nгo queria tar criando esse tуpico, Mais jб li os tutoriais de actor. entendi muito bem. E eu fiz o meu jб. Sу que quando eu boto para criar, eles nгo cria! eu atй botei um print no ongamemodeinit para ver se carregava.
#include a_samp
#include a_actor
new nb[2];
//* Calback* /
public OnGameModeInit( )
{
nb[0] = CreateActor(2,0.0,0.0,0.0,0.0);
nb[1] = CreateActor(2,0.0,0.0,0.0,0.0);
print("Actors carregados!! Teste"); // botei esse print apareceu no console. Mais os Actors nгo carrega!!
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/criar", true))
{
if(!IsPlayerAdmin(playerid))
nb[0] = CreateActor(2,0.0,0.0,0.0,0.0);
nb[1] = CreateActor(2,0.0,0.0,0.0,0.0);
SendClientMessage(playerid, -1, "| INFO | Vocк criou 2 atores!!");
return 1;
}
return 0;
}
#include a_samp
#include a_actor
new nb[2];
//* Calback* /
public OnGameModeInit( )
{
nb[0] = CreateActor(2,0.0,0.0,0.0,0.0);
nb[1] = CreateActor(2,0.0,0.0,0.0,0.0);
print("Actors carregados!! Teste"); // botei esse print apareceu no console. Mais os Actors nгo carrega!!
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/criar", true))
{
if(!IsPlayerAdmin(playerid))
nb[0] = CreateActor(2,0.0,0.0,0.0,0.0);
nb[1] = CreateActor(2,0.0,0.0,0.0,0.0);
SendClientMessage(playerid, -1, "| INFO | Vocк criou 2 atores!!");
return 1;
}
return 0;
}