[POMOC] Black street RP

Započeo Dusan101, Avgust 23, 2011, 08:30:14 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skinuo sam black street roleplay i kada sam usao u  pawno i otvorio street.pwn i onda kad hocu da vidim ima li errora pojavio mi se error

C:\Users\Korisnik-d\Desktop\mod\Black Street Rolelpay\gamemodes\street.pwn(16) : fatal error 100: cannot read from file: "D_Ikone" ??

Zlatan_Ibrahimovic

Ako nemas include moras ga naci,a ako imas udji u pawno od tog moda otvoris preko pawno-a taj mod tj. "open" i onda compile

Napravio sam to i opet isto ja sam otvorio mod msm pawno od moda i otisao na open i usao i include i onda open i uzeo complite i onda otvorio pawno od moda i complite i isto pise? mozda sam pogresio mozes mi napistati detaljnije plis  :'(  :'(  :'(  :'(
Poslednja Izmena: Avgust 23, 2011, 09:19:46 PRE PODNE od Dusan101

Zlatan_Ibrahimovic

odi u folder gdje ti je mod,zatim ima jos jedan folder zove se pawno udjes tu i ima ikonica

e ovakva ikona i udjes tu. Kad tu udjes imas gore svakakvih opcija,a ti odaberes open i kad to uradis onda nadjes svoj gamemode ali u pwn formatu i otvoris,a zatim compileas sa F5.
Poslednja Izmena: Avgust 23, 2011, 09:28:52 PRE PODNE od [EG]LuxZillo

Evo napravio sam kako si rekao i sad imaju ovi errori


C:\Users\Korisnik-d\Desktop\mod\Black Street Rolelpay\gamemodes\street.pwn(9129) : warning 204: symbol is assigned a value that is never used: "shealth"
C:\Users\Korisnik-d\Desktop\mod\Black Street Rolelpay\gamemodes\street.pwn(36844) : warning 204: symbol is assigned a value that is never used: "tmpcar"
C:\Users\Korisnik-d\Desktop\mod\Black Street Rolelpay\gamemodes\street.pwn(39746) : warning 204: symbol is assigned a value that is neverused:"pdgate2"


Zlatan_Ibrahimovic

ovo gdje pise shealth,na toj liniji

moras dodati ovo new Float:shealth;

ovo tmpcar dodas ovo new tmpcar = GetPlayerVehicleID(playerid);

a ovo sto pise pdgate2 to dodas negdje na pocetku,ali ovo moras dodati new pdgate2;


EDIT: NE mora bas biti na liniji,evo primjer kako se dodaje shealth

if(strcmp(cmd, "/vehslap", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "SYNTAX: /vehslap [ID Igraca/Dio Imena]");
return 1;
}
new playa;
new Float:shealth;
giveplayerid = ReturnUser(tmp);
new Float:slx, Float:sly, Float:slz;
playa = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >=3)
{
   if(IsPlayerConnected(playa))
   {
       if(playa != INVALID_PLAYER_ID)
       {
       GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerHealth(playa, shealth);
SetPlayerHealth(playa, shealth-0);
GetVehiclePos(GetPlayerVehicleID(giveplayerid), slx, sly, slz);
SetVehiclePos(GetPlayerVehicleID(giveplayerid), slx, sly, slz+550);
PlayerPlaySound(playa, 1130, slx, sly, slz+5);
printf(" %s je osamario vozilo %s",sendername,  giveplayer);
format(string, sizeof(string), " %s je osamaren od %s",giveplayer ,sendername);
ABroadCast(COLOR_LIGHTRED,string,1);
}
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Niste ovlasteni da koristite tu komandu.");
}
}
return 1;
}
Poslednja Izmena: Avgust 23, 2011, 09:45:02 PRE PODNE od [EG]LuxZillo