11.01.2016, 13:38
Hello SA-MP. Today I had one idea about creating actors and save thier position in MySQL. MySQL loaded everything okay, I check few time mySQL debug. But when I try to create actor via simple command it`s not working. Why I don`t know. I made one thread in Scritpting Help but no body knows how to fix it. I read few time topic in SA-MP wiki but still not working. Here is the code, people here was testing code, also for them actor wasn`t spawned.
PHP код:
CMD:actor(playerid, params[])
{
actor1 = CreateActor(4, 769.6655,323.3286,19.8828,356.4192);
SetPlayerPos(playerid, 769.6655,323.3286,19.8828);
SendDebug(playerid, "Actor created!");
return 1;
}
CMD:destroy(playerid, params[])
{
DestroyActor(actor1);
SendDebug(playerid, "Actor destroyed!");
return 1;
}