-
Posts
185 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Everything posted by MrAndrei
-
Revin cu EDIT daca a functionat!
-
-
UP! Nu am rezolvat !
-
Am adaugat la publicul OnPlayerCommandText si degeaba!
-
Aceeasi , problema, nu functioneaza nicio comanda din gamemode!
-
Acum functioneaza comanda, insa , nu mai merge nicio comanda .Doar aceasta!
-
Erori : C:UsersAndreiDesktopGameMode RiseGamminGGameMode RiseGamminGgamemodesfGaming.pwn(35912) : error 017: undefined symbol "requestevent" C:UsersAndreiDesktopGameMode RiseGamminGGameMode RiseGamminGgamemodesfGaming.pwn(35921) : error 017: undefined symbol "params" C:UsersAndreiDesktopGameMode RiseGamminGGameMode RiseGamminGgamemodesfGaming.pwn(35997) : warning 225: unreachable code C:UsersAndreiDesktopGameMode RiseGamminGGameMode RiseGamminGgamemodesfGaming.pwn(35912) : warning 203: symbol is never used: "CMD" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors. Linia 35912 : CMD:requestevent(playerid, params[]) { new title[50], location[50], description[100], prize, time[50];format(dstring, sizeof(dstring), "{FFFF00}Use [/acceptevent %d] to accept this event.", playerid); Linia 35950 : [...] ABroadCast(0xFFFFFFFF,string,1); return 1; } if(strcmp(cmd, "/acceptreport", true) == 0 || strcmp(cmd, "/ar", true) == 0) // By me { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) [...] Linia 35921 if(sscanf(params, "p</>s[50]s[50]s[50]s[100]d", title, location, time, description, prize)) return SendClientMessage(playerid, 0xFFFFFFFF, "{B8DBFF}Syntax: /requestevent <Title|Location|Time|Description|Prize>");
-
Gamemode nu este pe baza de date, degeaba incerci sa imi faci comanda in mod <zcmd>
-
UP ! Nu am rezolvat problema, am incercat si in altefeluri , dar fara succes!
-
Buna ziua, incearca comanda [/goto] care o public eu mai jos, dupa care, daca eroarea persista,va rugam sa ne spuneti : if(strcmp(cmd, "/goto", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "Tasteaza: /goto [ID/nume jucator]"); return 1; } new Float:plocx,Float:plocy,Float:plocz; new plo; plo = ReturnUser(tmp); if (IsPlayerConnected(plo)) { if(plo != INVALID_PLAYER_ID) { if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pAsistent] >= 1) { if(Spectate[playerid] != 255) { Spectate[playerid] = 256; } GetPlayerPos(plo, plocx, plocy, plocz); if(PlayerInfo[plo][pInt] > 0) { SetPlayerInterior(playerid,PlayerInfo[plo][pInt]); PlayerInfo[playerid][pInt] = PlayerInfo[plo][pInt]; PlayerInfo[playerid][pLocal] = PlayerInfo[plo][pLocal]; } if(PlayerInfo[playerid][pInt] == 0) { SetPlayerInterior(playerid,0); } if(plocz > 530.0 && PlayerInfo[plo][pInt] == 0) { SetPlayerInterior(playerid,1); PlayerInfo[playerid][pInt] = 1; } if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, plocx, plocy+4, plocz); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; } else { SetPlayerPos(playerid,plocx,plocy+2, plocz); } GetPlayerName(plo, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "Te-ai teleportat cu succes la %s (%d)!", giveplayer, plo); SCM(playerid, -1, string); new string1[128]; format(string1, sizeof(string1), "ADMIN INFO: {FFFFFF}Administrator %s (%d) s-a teleportat la jucatorul %s (%d)", sendername,playerid, giveplayer, giveplayerid); ABroadCast(COLOR_LIGHTRED, string1, 1); SetPlayerInterior(playerid, GetPlayerInterior(plo)); SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(plo)); GetPlayerName(plo, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); } else { SendClientMessage(playerid, COLOR_GRAD1, "Nu ai acces la aceasta comanda!"); } } } else { format(string, sizeof(string), "Acest jucator este offline!", plo); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; }
-
Am pus si imi spune ca serverul nu cunoaste comanda!
-
Gamemode-ul nu e pe baza de date. Am tastat ce mi-ai zis tu , si la fel, imi zice ca serverul nu cunoaste comanda!
-
Da, insa, cand pun datele necesare , imi afiseaza ca serverul nu cunoaste comanda. Chiar imi pare rau, pentru stresul creat angel. Poze :
-
Erori : C:UsersAAADesktopGameMode RiseGamminGgamemodesfGaming.pwn(36431) : error 017: undefined symbol "params" C:UsersAAADesktopGameMode RiseGamminGgamemodesfGaming.pwn(36437) : warning 219: local variable "string" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. Linia 36437: new string[1000],name[MAX_PLAYER_NAME]; Linia 36431 if(sscanf(params, "p<|>s[50]s[50]s[50]s[100]d", title, location, time, description, prize)) return SendClientMessage(playerid, 0xFFFFFFFF, "{B8DBFF}Syntax: /requestevent <Title|Location|Time|Description|Prize>"); La linia 36437 am schimbat in dstring[1000].... Am schimbat peste tot ..
-
Imi pare foarte rau pentru stresul creat.. Inca nu s-a rezolvat: Poza: Iar daca pun [/requestevent test] imi afiseaza ca serverul nu cunoaste comanda.
-
EDIT: Am adaugat ce mi-ai zis tu , insa acum apare asa : Am testat si cum ai zis tu : Poza : /requestevent <Title|Location|Time|Description|Prize> Si imi da "Server unknown the command".
-
Pai cand tastez comanda [/requestevent] imi afiseaza datele din poza.
-
Acum functioneaza , insa nu pot sa pun descrierile, textul , titlul. timpul etc etc Poza:
-
Problema intalnita (descriere):Comanda [/requestevent]. Ero(area / rile) / warning-(ul / urile):Cand tastez comanda in game nu functioneaza. Liniile de cod / sursa / script-ul(obligatoriu): Comanda : if(!strcmp(cmdtext, "/requestevent", true) || !strcmp(cmdtext, "/reqe", true)) // By AlyN { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai."); if(PlayerInfo[playerid][pWantedLevel] > 0) return SCM(playerid,COLOR_DS,"{37B9C8}You`re being chased by police, you can`t make an event."); if(activeevent == 1) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}There's already an active event."); if(requestingevent[playerid] == 1) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}You're already requesting an event, cancel it first."); new title[50], location[50], description[100], prize, time[50]; if(sscanf( "p<|>s[50]s[50]s[50]s[100]d", title, location, time, description, prize)) return SendClientMessage(playerid, 0xFFFFFFFF, "{B8DBFF}Syntax: /requestevent <Title|Location|Time|Description|Prize>"); if(strlen(title) < 0 || strlen(title) > 0) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Invalid amount of characters in title."); if(strlen(location) < 0 || strlen(location) > 50) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Invalid amount of characters in location."); if(strlen(time) < 1 || strlen(time) > 50) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Invalid amount of characters in time."); if(strlen(description) < 1 || strlen(description) > 100) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Invalid amount of characters in description."); if(prize < 1 || prize > 5000000) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Invalid prize amount."); new dstring[1000],name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); requestingevent[playerid] = 1; strmid(requestingtitle[playerid], title, 0, strlen(title)); strmid(requestinglocation[playerid], location, 0, strlen(location)); strmid(requestingdescription[playerid], description, 0, strlen(description)); requestingprize[playerid] = prize; strmid(requestingtime[playerid], time, 0, strlen(time)); format(string, sizeof(dstring), "{FFFF00}Event %d has been requested, details are below.", playerid); SendClientMessage(playerid, 0xFFFFFFFF, dstring); format(string, sizeof(dstring), "{FFFF00}Event: Title: %s Prize: $%s Location: %s Time: %s",title,FormatNumber(prize), location, time); SendClientMessage(playerid, 0xFFFFFFFF, string); format(string, sizeof(dstring), "{FFFF00}Event: Organizer: %s Description: %s",name,description); SendClientMessage(playerid, 0xFFFFFFFF, dstring); SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Your event is pending approval from an admin, please wait."); format(string, sizeof(dstring), "{FFFF00}Event %d has been requested, details are below.", playerid); ABroadCast(0xFFFFFFFF,dstring,1); format(string, sizeof(dstring), "{FFFF00}Event %d: Title: %s Prize: $%s Location: %s Time: %s",playerid,title,FormatNumber(prize), location, time); ABroadCast(0xFFFFFFFF,dstring,1); format(string, sizeof(dstring), "{FFFF00}Event %d: Organizer: %s Description: %s",playerid,name,description); ABroadCast(0xFFFFFFFF,string,1); format(string, sizeof(dstring), "{FFFF00}Use [/acceptevent %d] to accept this event.", playerid); ABroadCast(0xFFFFFFFF,dstring,1); return 1; } Tastez [/requestevent] si apare textul : "Invalid amount of characters in title." , iar daca tastez [/requestevent test] imi spune ca serverul nu cunoaste comanda. Imagini / Video (optional): Cand tastez [/requestevent] : Cand tastez vreau sa pun titlu ex: [/requestevent Duele Deagle la GSLS] [ Titlu ] : Ati incercat sa rezolvati singur?:Da, dar nu am reusit
-
Rezolvat.Multumesc !
-
Problema intalnita (descriere):Am o eroare. Ero(area / rile) / warning-(ul / urile): C:UsersAAADesktopGameMode RiseGamminGgamemodesfGaming.pwn(36292) : warning 219: local variable "string" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase Header size: 10148 bytes Code size: 1706892 bytes Data size: 5463960 bytes Stack/heap size: 16384 bytes; estimated max. usage=4740 cells (18960 bytes) Total requirements: 7197384 bytes 1 Warnings. Liniile de cod / sursa / script-ul(obligatoriu): Linia 36292: new string[500],name[MAX_PLAYER_NAME]; Comanda: if(!strcmp(cmdtext, "/event", true) || !strcmp(cmdtext, "/event", true)) // By MrAndrei { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai."); if(activeevent == 0) return SendClientMessage(playerid, COLOR_DS, "{FFFF45}There is currently no active event running."); new string[500],name[MAX_PLAYER_NAME]; foreach(Player, i) { if(eventorganizer == 1) { GetPlayerName(i, name, sizeof(name)); } } format(string, sizeof(string), "{FFFF00}Event: Title: %s Prize: $%s Location: %s Time: %s",eventtitle,FormatNumber(eventprize), eventlocation, eventtime); SendClientMessage(playerid, 0xFFFFFFFF, string); format(string, sizeof(string), "{FFFF00}Event: Organizer: %s Description: %s",name,eventdescription); SendClientMessage(playerid, 0xFFFFFFFF, string); return 1; } Imagini / Video (optional):- Ati incercat sa rezolvati singur?:Da, dar nu am reusit
-
Problema nu e la interior , in hq , vreau sa se afiseze un text , "Foloseste [/takeguns] pentru a-ti lua arme,ceva gen cabinet. Am folosit functia Create3DTextLabel , insa nu reusesc sa fac corect. ID-ul interiorului de la Grove este 3, dar nu reusesc sa pun textul.Am dat [/save] la coordonate , le-am implementat, merge comanda dar nu imi apare textul. Problema este clar de la : Create3DTextLabel("Tasteaza /takeguns npentru a-ti lua armenPret: {FFFFFF}1.000$",0xADD8E6FF,2492.9631,-1701.9628,1018.3438,5,0,3); //Takeguns Ultimele 3 cifre, nu stiu ce inseamna, ma puteti ajuta?
-
M-am exprimat gresit, in hq doar membrii factiunii au acces.Eu vreau sa adaug un text , dar gresesc interiorul si exteriorul cu "Create3DTextLabel"
-
Asta e faza..ca nu inteleg care e interiorul si care e vw... Adica, stiu care e interiorul hq-ului, dar nu stiu unde trebuie pus in "Create3DTextLabel" , la fel si vw.
