Dio skripte:
if(dialogid == dialog_ACTORCREATE)
{
if(!response) return 1;
if(response)
{
if(strval(inputtext) < 0 && strval(inputtext) > 311) return SPD(playerid, dialog_ACTORCREATE, DSI, "Actor Menu:", "Upišite ID skina za Actor-a:", "OK", "ZATVORI");
for(new id = 0; id < MAX_ACTOR; id++)
{
new AkterFajl;
format(AkterFajl, sizeof(AkterFajl), ACTOR_FILE, id);
if(!fexist(AkterFajl))
{
new Float:x, Float:y, Float:z, Float:rot;
ActorInfo = strval(inputtext);
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, rot);
ActorInfo = x; ActorInfo = y; ActorInfo = z; ActorInfo = rot;
SPD(playerid, dialog_ACTORANIM, DSI, "Actor Menu:", "Upisite ID animacije za Actor-a:\n\nPomoc:\n0: Ništa\n1: Stav\n2: Rep\n3: Nadrogiran\n4: Pusi cigaru\n5: Sedi\n6: Lezi\n7: Deal Stance\n8: Prekstene Ruke\n9: Pricanje", "OK", "ZATVORI");
break;
}
}
}
return 1;
}
if(dialogid == dialog_ACTORANIM)
{
if(!response) return 1;
if(response)
{
if(strval(inputtext) < 0 || strval(inputtext) > 10) return SPD(playerid, dialog_ACTORANIM, DSI, "Actor Menu:", "Upisite ID animacije za Actor-a:\n\nPomoc:\n0: Ništa\n1: Stav\n2: Rep\n3: Nadrogiran\n4: Pusi cigaru\n5: Sedi\n6: Lezi\n7: Deal Stance\n8: Prekstene Ruke\n9: Pricanje", "OK", "ZATVORI"); /////crack, smoking,seat,lezenje,dealing,ruke prekrstene
for(new id = 0; id < MAX_ACTOR; id++)
{
new AkterFajl;
format(AkterFajl, sizeof(AkterFajl), ACTOR_FILE, id);
if(!fexist(AkterFajl))
{
ActorInfo = strval(inputtext);
SCM(playerid,-1, "Završili ste kreiranje Actor-a.");
SacuvajActore(id);
ActorSkin = CreateActor(ActorInfo, ActorInfo, ActorInfo, ActorInfo, ActorInfo);
SetActorInvulnerable(id, true);
AkterLabelAnim();
if(ActorInfo == 0) { ClearActorAnimations(id); }
else if(ActorInfo == 1) { ApplyActorAnimation(id, "COP_AMBIENT", "Coplook_loop", 4.0, 1, 1, 1, 1, -1); }
else if(ActorInfo == 2) { ApplyActorAnimation(id, "RAPPING", "RAP_A_Loop", 4.0, 1, 0, 0, 0, 0); }
else if(ActorInfo == 3) { ApplyActorAnimation(id, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); }
else if(ActorInfo == 4) { ApplyActorAnimation(id, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0); }
else if(ActorInfo == 5) { ApplyActorAnimation(id, "MISC", "SEAT_LR", 4.1, 1, 0, 0, 1, 1); }
else if(ActorInfo == 6) { ApplyActorAnimation(id, "SUNBATHE", "Lay_Bac_in", 3.0, 1, 1, 1, 1, 0); }
else if(ActorInfo == 7) { ApplyActorAnimation(id, "DEALER", "DEALER_IDLE", 4.0, 1, 0, 0, 0, 0); }
else if(ActorInfo == 8) { ApplyActorAnimation(id, "COP_AMBIENT", "Coplook_loop", 4.0, 1, 1, 1, 1, -1); }
else if(ActorInfo == 9) { ApplyActorAnimation(id, "PED", "IDLE_CHAT", 4.0, 1, 0, 0, 1, 1); }
break;
}
}
}
return 1;
}Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Slika/video ingame problema(obavezno ako je ingame problem): //
