Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Slika/video ingame problema(obavezno ako je ingame problem): //
Deo skripte:
YCMD:pica(playerid, params[], help)
{
if(Ulogovan == 0) return SCM(playerid,COLOR_BIJELA,"{1500FF}[CW:RP]: {FF0000}Niste ulogovani na server,ne mozete koristiti komande!");
if(IsPlayerAttachedObjectSlotUsed(playerid, 1)) return SCM(playerid, COLOR_BIJELA, "{FF0000}[CW:RP]: {FFFFFF}Vec drzite nesto u desnoj ruci,ne mozete jesti picu sada.");
if(GetPlayerVirtualWorld(playerid) >= 1 && GetPlayerInterior(playerid) >= 1) return SCM(playerid,COLOR_BIJELA,"{FF0000}[CW:RP]: {FFFFFF}Ne mozete jesti u interijeru!");
if(Pica == 1)
{
ApplyAnimation(playerid, "FOOD", "EAT_Pizza",4.1,0,1,1,0,0);
SetPlayerAttachedObject(playerid, 1, 2881, 6, -0.039999, 0.050000, 0.100000, -45.000000, 0.000000, 0.000000);
SetTimer("PicaTimer",4200,false);
Pica = 0;
}
else
{
SCM(playerid,COLOR_BIJELA,"{FF0000}[CW:RP]: {FFFFFF}Nemate picu kod sebe!");
}
return 1;
}
forward PicaTimer(playerid);
public PicaTimer(playerid)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
for(new i=0; i {
PicaSmece = CreateObject(2881, x+0.5, y, z-1, 0.00000, -90.00000, 0.00000, 300.0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,0);
PicaSmeceJP += 1;
}
if(PicaSmeceJP >= 5)
{
return KomunalacPoruka(COLOR_BIJELA,"{FFAE00}: {FFFFFF}U gradu ima previse smeca,neka ga neko pokupi!");
}
RemovePlayerAttachedObject(playerid, 1);
return 1;
}
