heker
-
Posts
617 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Posts posted by heker
-
-
Un ajutor va rog:( nu pot face nimic fara asta. Scz de dublu post (
-
Imi da 2 erori la compilare. Am bagat codul pentru comanda /veh si imi da aceste erori
if(strcmp(cmd, "/veh", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] < 4)
{
SendClientMessage(playerid, 0xA8A8FFFF, " Ne pare rau , dar tu nu ai accesul la comanda aceasta !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Type / Scrie: /veh [carid] [color1] [color2]");
return 1;
}
new car;
car = strval(tmp);
if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, " Vehicle Number can't be below 400 or above 611 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Type / Scrie: /veh [carid] [color1] [color2]");
return 1;
}
new color1;
color1 = strval(tmp);
if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Culoarea trebe sa fie intre 0 si 126 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Type / Scrie: /veh [carid] [color1] [color2]");
return 1;
}
new color2;
color2 = strval(tmp);
if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Color Number can't be below 0 or above 126 !"); return 1; }
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
new carid = CreateVehicle(car, X,Y +3,Z, 0.0, color1, color2, 60000);
CreatedCars[CreatedCar] = carid;
CreatedCar ++;
format(string, sizeof(string), "Ai spawnat masina cu id %d ", carid);
SendClientMessage(playerid, COLOR_GREY, string);
}
return 1;
}
si imi da aceste erori :|
C:\Documents and Settings\Gaby\Desktop\ser 0.3\gamemodes\larp.pwn(13564) : error 017: undefined symbol "CreatedCar"
C:\Documents and Settings\Gaby\Desktop\ser 0.3\gamemodes\larp.pwn(13565) : error 017: undefined symbol "CreatedCar"
C:\Documents and Settings\Gaby\Desktop\ser 0.3\gamemodes\larp.pwn(13565) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
-
Am facut acest tutorial pt cei care nu stiu cum sa spawneze masini apoi sa le salveze si ele sa nu dispara la urmatorul restart al serverului.
E simplu, nici eu nu stiam inainte.
Deci:
1. Intri in server.
2. Iti alegi masina care o vrei, sau o spawnezi cu /veh sau /vehicle depinde ce comanda aveti.
3. O bagi in ce loc vrei tu sa ramina.
4. Dai /save
5. Apoi iti apare:
6. Veh Possition Save.
7. Si tot asa cu mai multe masini.
8. Iesi din server.
9. Intri unde ai instalat GTA SA.
10. Cauti " Saved possition.txt ".
11. Va fi in format de document " txt ".
12. Intri in el.
13. Si scolo sint " AddStaticVehicle ".
14. Le selectezi apoi le dai " copy ".
15. Intri in GM.
16. Cauti " OnGameModeInit ".
17. Mai jos vor mai fi " AddStaticVehicle ".
18. Dai pina jos unde se termina " AddStati..... "
19. Si dam " paste ".
20. Apoi dam " compile ".
21. Si gata.
22. Succes total.
Nu uitati: Trebuie sa fiti intr-o masina cind dati /save ...
Am facut acest tutorial pt ca am vreo 2 in lista care ma tot intreaba.
Si mii cam greu sa le explic.
Asa ca am facut acest tutorial.
Sper sa va ajute.
Pt cei care nu au, iata comanda (/veh) ...
la ce linie bag codul cu /veh :| ca nu il am :(
-
Imi puteti spune si cum se creaza helperi va rog daca nu va deranjez :)
-
Care este codul de la fast event acela care scrie cel mai rpd f39hZnf castiga ceva de genu :)
-
Mersi mult ady esti tare frate :D
-
Cand dau compile imi apare eroarea asta:
D:\Saints Network [server SAMP]\Saints Network\gamemodes\larp.pwn(456) : fatal error 100: cannot read from file: "streamer"
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
La altcineva se compileaza:|
-
Am motul gf si am factiuni facute dar nu am HQ la ele si respawnul in am aiurea, ma poate ajuta cineva?
-
Lam facut de level 4 si mai in romana dar nu imi pai apare timpul sa astepti 60secunde :|
if(strcmp(cmd, "/advertise", true) == 0 || strcmp(cmd, "/ad", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLevel] >= 4)
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[264];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/ad)vertise [advert text]");
return 1;
}
if ((!adds) && (PlayerInfo[playerid][pAdmin] < 1))
{
format(string, sizeof(string), " Asteapta , %d minute Pentru alt anunt !", (addtimer/60000));
SendClientMessage(playerid, COLOR_GRAD2, string);
return 1;
}
new payout = idx * 25;
if(GetPlayerCash(playerid) < payout)
{
format(string, sizeof(string), "* Au fost %d charactere si tea costat $%d, de bani.", offset, payout);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
return 1;
}
GivePlayerCash(playerid, - payout);
SBizzInfo[7][sbTill] += payout;
ExtortionSBiz(7, payout);
format(string, sizeof(string), "Anunt: %s, Nume: %s Tel: %d", result, sendername,PlayerInfo[playerid][pPnumber]);
OOCNews(TEAM_GROVE_COLOR,string);
format(string, sizeof(string), "~r~Paid $%d~n~~w~Message contained: %d Characters", payout, idx);
GameTextForPlayer(playerid, string, 5000, 5);
if (PlayerInfo[playerid][pAdmin] < 1){SetTimer("AddsOn", addtimer, 0);adds = 0;}
}
else
{
SendClientMessage(playerid,COLOR_GREY,"Nu ai level 4 !");
}
}
return 1;
}
-
Deci nu imi fac griji
Mersi mult
-
Dc imi da acesta eroare la compilare.........bine nu eroare dar ma avertizeaza ceva:|
Header size: 8096 bytes
Code size: 1595080 bytes
Data size: 4906332 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4123 cells (16492 bytes)
Total requirements: 6525892 bytes
-
Daca sar putea si o lista cu culori pentru pawno
Ex: 001x2c300 - galben ceva de genu :)
-
imi da eroare:( cum tr sa pun nu asa?
public OnGameModeInit()
{
ShowPlayerMarkers(1);
nextapartment = 24;
nexthouse = 2;
nextmedium = 17;
nextbig = 1;
Predators = 0;
asa sau?
public OnGameModeInit()
{
ShowPlayerMarkers(1);
// restu de linii pe care le ai
}
{
nextapartment = 24;
nexthouse = 2;
nextmedium = 17;
nextbig = 1;
Predators = 0;
-
dar coordonatele unde le bagi?
si mie la fel mia dat :|
-
dar coordonatele unde le bagi?
-
As vrea daca se poate un cod sa se vada playeri pe harta.......dar cu cat ma apropi mai mult de el sa se vada........nu sa se vada toti pe toata harta :)
Am o problema la compile
in Arhivă probleme
Posted
Ms adelin gg :D