Dio skripte:
SKRIPTA
YCMD:napravipoklon(playerid, params[], help)
{
#pragma unused help
#pragma unused params
if(UlogovanProvera == 0) return SCM(playerid,-1,"MC:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo < 3) return SCM(playerid, -1, ""CRVENA"Samo Admini (AL 3+)!");
new whore = GetPlayerInterior(playerid);
new suckdick = GetPlayerVirtualWorld(playerid);
new Float:x, Float:y, Float:z;
new string;
GetPlayerPos(playerid, x, y, z);
CreateGift(whore, suckdick, x, y, z);
ukupnopaketica++;
GetPlayerLocation(playerid)
48142: format(string, 128, "Novi paketic iznenadjenja je napravljen u blizini: {00D900}%s", GetPlayerLocation(playerid));
SCMTA(-1, string);
format(string, 128, "Ukupno preostalo paketica: {00D900}%d", ukupnopaketica);
SCMTA(-1, string);
}
return 1;
}stock CreateGift(interior, world, Float:Xx, Float:Yy, Float:Zz)
{
for(new weed = 0; weed < sizeof(GiftInfo); weed++)
{
if(GiftInfo == 0 && GiftInfo == 0)
{
new rands = random(5)+1;
if(rands == 1)
{
GiftInfo = CreateDynamicObject(19054, Xx,Yy,Zz-0.5, 0, 0, 0,world, interior, -1, 50);
}
if(rands == 2)
{
GiftInfo = CreateDynamicObject(19055, Xx,Yy,Zz-0.5, 0, 0, 0,world, interior, -1, 50);
}
if(rands == 3)
{
GiftInfo = CreateDynamicObject(19056, Xx,Yy,Zz-0.5, 0, 0, 0,world, interior, -1, 50);
}
if(rands == 4)
{
GiftInfo = CreateDynamicObject(19057, Xx,Yy,Zz-0.5, 0, 0, 0,world, interior, -1, 50);
}
if(rands == 5)
{
GiftInfo = CreateDynamicObject(19058, Xx,Yy,Zz-0.5, 0, 0, 0,world, interior, -1, 50);
}
GiftInfo = Xx;
GiftInfo = Yy;
GiftInfo = Zz;
GiftInfo = 1;
GiftInfo = 0;
48122: GiftText = CreateDynamic3DTextLabel("= [ POKLON IZNENADJENJA ] =\n{FFFFFF}/uzmipoklon", BELA, Xx,Yy,Zz, 5, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, world, interior, -1, 5.0);
return 1;
}
}
return 0;
}ERORI
C:\Users\Sanel\Desktop\Monte Carlo RolePlay\gamemodes\MC-RP.pwn(48122) : error 035: argument type mismatch (argument 2)
C:\Users\Sanel\Desktop\Monte Carlo RolePlay\gamemodes\MC-RP.pwn(48142) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Sanel\Desktop\Monte Carlo RolePlay\gamemodes\MC-RP.pwn(48146) : warning 209: function "@_yCnapravipoklon" should return a value
C:\Users\Sanel\Desktop\Monte Carlo RolePlay\gamemodes\MC-RP.pwn(48147) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
48146 i 48147 nema nicega a pise eror
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]vaš odgovor[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): link slike
