Also der erste Script soll einen porten wenn man /ev eingibt. Leider passiert jedoch nichts.
public OnPlayerCommandText2(playerid, cmdtext[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (strcmp("/ev", cmdtext, true) == 0)
{
SetPlayerPos(playerid,770.0457,-1632.9095,38.1016);
SendClientMessage(playerid, 0xFF0000AA, "Es beginnt /n");
}
}
return 1;
´}
Natürlich auch alles forwared, alles ohne Errors und Warnings.
zweiter Script soll zufallsexplosionen erstellen, es passiert ebenfalls nichts:
public RandomExplosionsenabled(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
CreateExplosion(2172.7898,-1635.3604,14.2834,10,100);
CreateExplosion(2196.9124,-1642.9293,15.0307,10,100); //
CreateExplosion(2309.1370,-1652.1251,14.1813,10,100); //
CreateExplosion(2318.4104,-1666.1140,13.9065,10,100); //
CreateExplosion(2441.6411,-1655.8091,13.0419,10,100); //
}
SetTimer("RandomExplosions",200,1);
return 1;
}
public RandomExplosions(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
CreateExplosion(2172.7898,-1635.3604,14.2834,10,100);
CreateExplosion(2196.9124,-1642.9293,15.0307,10,100); //
CreateExplosion(2309.1370,-1652.1251,14.1813,10,100); //
CreateExplosion(2318.4104,-1666.1140,13.9065,10,100); //
CreateExplosion(2441.6411,-1655.8091,13.0419,10,100); //
}
return 1;
}
Alles fehlerfrei..
Was ist an den Scripts falsch??