Deejaybwg
-
Posts
605 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Posts posted by Deejaybwg
-
-
Nu-l folosesc. M-a ajutat xxSPEEDYxx.cred ca e de la plugin daca folosesti MySQL incearca asta: http://www.gta-online.lt/v2/index.php?topic=3352.0
Rezolvat.
-
Ce inseamna eroarea asta ?
Server crash caused by native CallLocalFunction() called at address 0x158B0 in 'gamemodes/RSG4564212RO.amx' Call stack (most recent call first): 0x????????()
-
Cauta 'money' fara ghilimele si vezi ce gasesti.am hasit in gm doar antihack de arme asta de bani nu am gasit
poate are alta denumire?
-
Aici postezi daca ai probleme cu rularea clientului.
Posteaza asta la Discutii Scripting si posteaza si liniile.
-
A facut pentru ca a trecut o zi de la postul anterior.MaTriX" post="117975" timestamp="1333211242"]Pfff Mai ai sa faci 2X posturi ?
Apasa CTRL + F si scrie Hack sau Anti, ceva care sa aiba legatura cu ANTI-HACK-ul tau.ma eu am ANTI_HACK in GM acolo cum il gasesc sal sterg:D
-
Nu am asta.Ai enum PlayerData si dedesupt cum ai?
La linia asta
Ce e acolo trebuie sa pui in loc de AccInfo
-
Am AccInfo. Am pus si imi da undefined symbol PlayerInfo. L-am definit, apoi imi da undefined symbol LoggedIn, desi am :Ai mai postat o chestie aproape la fel ca asta.
Cand copiezi asigura-te ca si modifici ca sa fie 'Comatibil' cu gm tau.
Nu cred ca tu ai AccInfo.
Pune asa si vezi
[pawn]if(PlayerInfo[playerid][LoggedIn] == 1)[/pawn]
[pawn]enum PlayerData
{
LoggedIn,[/pawn]
Am LoggedIn acolo.Ai eroare si la LoggedIn
Dute la enum .... unde ai puse chestiile cre iti trebuie si pune acolo
LoggedIn sau daca ai ceva asemanator modifica in comanda
Erori cu gramada.Testeaza:
[pawn]if ( strcmp( cmd, "/givescore", true ) == 0 )
{
if ( PlayerInfo[ playerid ][ LoggedIn ] == 1 )
tmp = strtok( cmdtext, idx );
if(!strlen(tmp)) return SendClientMessage( playerid, COLOR_WHITE, "Foloseste: /givescore [playerid] [score]" );
giveplayerid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "Foloseste: /givecash [playerid] [score]");
new scores;
scores = strval( tmp );
if ( IsPlayerConnected( giveplayerid ) )
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new playerscore;
playerscore = GetPlayerScore(playerid);
if (scores > 0 && playerscore >= scores) {
SetPlayerScore(playerid, playerscore - scores);
SetPlayerScore(giveplayerid, GetPlayerScore( giveplayerid ) + scores);
format(string, sizeof(string), "I-ai trimis lui %s(player: %d), %d score.", giveplayer,giveplayerid, scores);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "Ai primit %d score de la %s(player: %d).", scores, sendername, playerid);
SendClientMessage(giveplayerid, COLOR_YELLOW, string);
printf("%s(playerid:%d) has transfered %d to %s(playerid:%d)",sendername, playerid, scores, giveplayer, giveplayerid);
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "Score invalid.");
}
else
{
format(string, sizeof(string), "%d nu este activ.", giveplayerid);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
return 1;
}[/pawn]
-
Am inchis si imi da erorile din primul post.Pai daca ai pus numai sus o { e narmal sa iti dea erori ia si inchide si jos cu o }
-
Am pus mai devreme o '{', dar imi da erori cu gramada.
-
Am facut comanda asta :
[pawn]if(strcmp(cmd, "/givescore", true) == 0)
{
if(AccInfo[playerid][LoggedIn] == 1)
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Foloseste: /givescore [playerid] [score]");
return 1;
}
giveplayerid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Foloseste: /givecash [playerid] [score]");
return 1;
}
new scores;
scores = strval(tmp);
if (IsPlayerConnected(giveplayerid))
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new playerscore;
playerscore = GetPlayerScore(playerid);
if (scores > 0 && playerscore >= scores) {
SetPlayerScore(playerid, playerscore - scores);
SetPlayerScore(giveplayerid, GetPlayerScore( giveplayerid ) + scores);
format(string, sizeof(string), "I-ai trimis lui %s(player: %d), %d score.", giveplayer,giveplayerid, scores);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "Ai primit %d score de la %s(player: %d).", scores, sendername, playerid);
SendClientMessage(giveplayerid, COLOR_YELLOW, string);
printf("%s(playerid:%d) has transfered %d to %s(playerid:%d)",sendername, playerid, scores, giveplayer, giveplayerid);
}
else {
SendClientMessage(playerid, COLOR_YELLOW, "Score invalid.");
}
}
else {
format(string, sizeof(string), "%d nu este activ.", giveplayerid);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
return 1;
}[/pawn]
Am compilat, dar imi da erorile :
C:\Users\thebwgg\Desktop\RSG4564212RO.pwn(3264) : error 001: expected token: ")", but found "[" C:\Users\thebwgg\Desktop\RSG4564212RO.pwn(3264) : error 029: invalid expression, assumed zero C:\Users\thebwgg\Desktop\RSG4564212RO.pwn(3264) : error 017: undefined symbol "LoggedIn" C:\Users\thebwgg\Desktop\RSG4564212RO.pwn(3264) : fatal error 107: too many error messages on one line
[pawn]3264 if(AccInfo[playerid][LoggedIn] == 1)[/pawn]
Ce nu e in regula la linia aia ?
-
Cum as putea sa fac la comanda /lock, cand vreau sa inchid casa, sa pot s-o incui in timp ce sunt in ea ?
Folosesc Antironix's house system.
[pawn]dcmd_lock(playerid,params[])
{
#pragma unused params
new str1[256],pname[24],housenumber;
housenumber = GetHouseID(playerid);
GetPlayerName(playerid, pname, 24);
format(str1, sizeof(str1), "Houses/houseid%d", housenumber);
if(strcmp(hInfo[housenumber][Name],pname,true)==0)
{
SendClientMessage(playerid, c_y, "{FFFFFF}You have locked your house.");
dini_IntSet(str1,"Locked",1);
hInfo[housenumber][Locked] = 1;
}
else if(strcmp(hInfo[housenumber][Renter],pname,true)==0)
{
SendClientMessage(playerid, c_y, "{FFFFFF}You have locked your house.");
dini_IntSet(str1,"Locked",1);
hInfo[housenumber][Locked] = 1;
}
else
{
SendClientMessage(playerid, c_r, "{FFFFFF}This house isn't your.");
}
return 1;
}[/pawn]
-
Daca folosesti JunkBuster, dute in scriptfiles/JunkBuster/JunkBuster.cfg.
Intri acolo, si ai :
MoneyHack=1
iar tu pui :MoneyHack=0
-
Cateodata, nu mereu, cand dau /nrg, imi apare alt vehicul (orice vehicul), sau uneori, ma teleporteaza la cineva.
De la ce poate fi acest bug ?
Comanda /nrg :
[pawn]if(strcmp(cmdtext, "/nrg", true)==0)
{
if( PVeh[playerid] > 0 )
{
if(GetPlayerVehicleID(playerid) != PVeh[playerid])
{
if(IsPlayerInAnyVehicle(playerid))
{
RemovePlayerFromVehicle(playerid);
}
new Float: X, Float: Y, Float: Z, Float: Ang, Name[30];
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
GetPlayerName(playerid, Name, sizeof( Name ));
PutPlayerInVehicle(playerid, PVeh[playerid], 0);
SetVehiclePos(PVeh[playerid], X, Y, Z);
SetVehicleZAngle(PVeh[playerid], Ang);
SetVehicleHealth(PVeh[playerid], 1000.0);
LinkVehicleToInterior(PVeh[playerid], GetPlayerInterior(playerid));
}
else
{
SendClientMessage(playerid,0xCC0000AA, "Nu poti folosi aceasta comanda cand esti in alt vehicul.");
}
}
else
{
if(IsPlayerInAnyVehicle(playerid))
{
RemovePlayerFromVehicle(playerid);
}
new Float: X, Float: Y, Float: Z, Float: Ang, Name[30];
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
GetPlayerName(playerid, Name, sizeof( Name ));
HideDraw(playerid);
SetTimerEx("HideDraw", 3000, 0, "i", playerid);
PVeh[playerid] = CreateVehicle(522, X, Y , Z, Ang, 116,36, 5000000);
PutPlayerInVehicle(playerid, PVeh[playerid], 0);
LinkVehicleToInterior(PVeh[playerid], GetPlayerInterior(playerid));
printf("NRG-500 created for %s.", Name);
SetVehicleParamsForPlayer(PVeh[playerid], playerid, 0, 0);
for(new i=0; i <= MAX_PLAYERS; i++)
{
if ( IsPlayerConnected(i) )
{
if ( i != playerid )
{
SetVehicleParamsForPlayer(PVeh[playerid], i, 0, 1);
}
}
}
}
return 1;
}[/pawn]
-
Invata sa controlezi masina.eu ma izbest cu masina din gard in stalp si in perete )
Video-ul, foarte reusit, GJ.
-
Citeste regulamentul.
Nu se posteaza ID-uri.
-
Am scos un FS cu anim-uri, si de cand l-am scos (3 zile) nu s-a mai inchis... decat odata cand lucrau cei de la host la servere, si atunci s-au inchis toate serverele hostate la ei... sper sa fie de la asta.
Multumesc.
-
Cine e Xeex_ ?3. Contacteaza-l pe Zeex_, el trebuie sa stie ce sa-i faca.
-
Serverul meu se inchide cam odata la 2 zile.. folosesc Crashdetect Plugin, si in log imi arata 'Unknown Error'.
Unknown Error - de la ce poate fi eroarea asta... ?
De la host sunt 90% sigur ca nu e.
-
Cauta pe 'Goagal'.
Nu se posteaza asa ceva aici.
-
Rezolvat, dar iar a aparut aceeasi eroare...
amp03svr: amx/amxfile.c:222: fputs_cell: Assertion `fp!=((void *)0)' failed.
-
Am obiectele cu CreateDynamicObject.Trebuie sa si compilezi gm cu noul include..si daca nu ai obiectele cu CreateDynamicObject convertestele aici.
Am sa mai incerc odata.stuntman[]! link=topic=20407.msg115213#msg115213 date=1331397511]Ia iar Streamer Plugin v2.6r29 si baga-l in acel folder /pawno, si baga streamer.so si .dll in folderul plugins din server, apoi deschide pawno.exe din folderul in care ai bagat include (/pawno), da CTRL+O, deschide GM si toate FS-urile si compileaza-le. Apoi baga GM si FS-urile .amx pe host, si streamer.so.
-
Am descarcat Streamer Plugin v2.6 revizuire 29 de aici, am inlocuit streamer.so si streamer.inc, am dat restart la server, dar nu se vad mapele...
Am compilat FS-urile, GM-ul, dar tot nu se vad mapele.
Cu streamer.so si streamer.inc care le aveam se vedeau mapele.
-
16:12:35] *** Streamer Plugin: Obsolete or invalid native "Streamer_RegisterInterface" found (script needs to be recompiled with the latest include file) [16:12:35] *** Streamer Plugin: Obsolete or invalid native "Streamer_AddPlayer" found (script needs to be recompiled with the latest include file) [16:12:35] *** Streamer Plugin: Obsolete or invalid native "Streamer_RemovePlayer" found (script needs to be recompiled with the latest include file) [16:12:35] *** Streamer Plugin: Obsolete or invalid native "Streamer_VerifyPickup" found (script needs to be recompiled with the latest include file) [16:12:35] *** Streamer Plugin: Obsolete or invalid native "Streamer_VerifyCheckpoint" found (script needs to be recompiled with the latest include file)
Am gasit asta in server_log.txt si din cauza asta mi se inchide serverul...
Care este problema ?
-
Liniile nu sunt asezate cum trebuie.
Aseaza-le in ordine pe toate.
Servieta SAMP
in Arhivă probleme
Posted
Intra in scriptfiles/JunkBuster/JunkBuster.cfg ==> MoneyHack=0.
Pune 0 in loc de 1 sau cat ai tu.