Yugao
Membru-
Posts
53 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Everything posted by Yugao
-
Problema sistem de inregistrare(query-baza de date)
Yugao replied to Yugao's question in Arhivă probleme
Tot nu merge la ondialogresponse am pus asa: [pawn] if ( dialogid == DIALOG_EMAIL ) { if ( !response || isnull(inputtext ) ) return ShowPlayerDialog(playerid,DIALOG_EMAIL,DIALOG_STYLE_INPUT,"Email","Scrie aici email-ul tau","O.K.",""); new Query [ 256 ] ; format ( Query , sizeof ( Query ) , "UPDATE `Jucatori` SET `Email` = '%s' WHERE `Nume` = '%s", DB_Escape ( inputtext ), P_DATA [ playerid ] [ Nume ] ) ; db_free_result ( db_query ( Accounts , Query ) ) ; SPD ( playerid , DIALOG_REGISTER , DIALOG_STYLE_PASSWORD , "Inregistreaza-te" , "Introduceti o parola pentru a va inregistra:" , "Register" , "" ); return ( 1 ) ; } [/pawn] -
Am un sistem de inregistrare/logare pe sqlite si nu imi da query cum trebuie la elementele Email,sex,varsta,interior,spawn Aici e scriptul: http://pastebin.com/5ZyHyQqn
-
Am sistemul acesta de inregistrare: http://pastebin.com/4DPEZ527 Si vreau sa fac sa se spawneze automat dupa login la coordonatele de la AddPlayerClass(); ca sa nu mai apas pe spawn cand porneste jocul.Am incercat sa pun SpawnPlayer la OnDialogResponse dar nu merge. Cum pot face asta?
-
Mersi acum merge ;)
-
Daca il compilez asa nu merge [pawn] public OnGameModeInit() { SetGameModeText("HC:RP v0.0.1"); mysql_connect ( "127.0.0.1", "Trinity", "Accounts", "calculatornexus0732030668alex47" ); new string [ 756 ] ; Accounts = db_open ( "Accounts.db" ) ; strcat ( string , "CREATE TABLE IF NOT EXISTS `Jucatori`" , 756 ) ; strcat ( string , "(`ID` INTEGER PRIMARY KEY AUTOINCREMENT ,\ `Nume` TEXT ,\ `Sex` TEXT ,\ `Parola` TEXT ,\ `Varsta` NUMERIC ,\ `Spawn` NUMERIC ,\ `Interior` NUMERIC ,\ `Bani` NUMERIC ,\ `Scor` NUMERIC , " , 756 ) ; strcat ( string , "`Ucideri` NUMERIC ,\ `Decese` NUMERIC ) " , 756 ) ; db_free_result ( db_query ( Accounts , string ) ) ; return ( 1 ) ; } [/pawn] Si imi da urmatoarele erori: Dar daca scot "Interior" poate fi compilat [pawn] public OnGameModeInit() { SetGameModeText("HC:RP v0.0.1"); mysql_connect ( "127.0.0.1", "Trinity", "Accounts", "calculatornexus0732030668alex47" ); new string [ 756 ] ; Accounts = db_open ( "Accounts.db" ) ; strcat ( string , "CREATE TABLE IF NOT EXISTS `Jucatori`" , 756 ) ; strcat ( string , "(`ID` INTEGER PRIMARY KEY AUTOINCREMENT ,\ `Nume` TEXT ,\ `Sex` TEXT ,\ `Parola` TEXT ,\ `Varsta` NUMERIC ,\ `Spawn` NUMERIC ,\ `Bani` NUMERIC ,\ `Scor` NUMERIC , " , 756 ) ; strcat ( string , "`Ucideri` NUMERIC ,\ `Decese` NUMERIC ) " , 756 ) ; db_free_result ( db_query ( Accounts , string ) ) ; return ( 1 ) ; } [/pawn] Cum pot sa rezolv asta?
-
Am semnat si eu Abia astept sa-l scoata
-
Lucrez la un gamemode Si am incercat sa scot sistemul de masini chiar si cu tutorialul dar nu reusesc pentru ca e putin diferit.
-
Cum creez o dinaia cu x,y,z de mut obiectele in joc cam ca in sistemul de porti al lui gireada?
-
Eu lucrez la un gm roleplay si ca sa il fac mai roleplay as vrea sa adaug niste npc in diferite locuri dar nu stiu cum sa creez unul.
-
Am incercat nu sunt txd-uri cu numele la fel
-
Pai e ceva de munca cu asta ca mi-am mai adaugat 2 parcari care le fac dealership-uri dar pana iau toate coordonatele,pana bag masinile in cars.cfg pana schimb la if(vehicleid... cu mare atentie sa nu se incurce id-urile nu e greu dar dureaza cam prea mult App ms Stefan-trebuie doar modificata putin comanda si e perfect ca e bun sistemul de masini al gm-ului
-
(Coduri-functiile din filterscript) M-am apucat si am cautat bine si am redenumit comenzile ce erau de 2 ori Si am aceeasi problema nu s-a schimbat nimic La inceput si eu credeam ca e de la comenzi dar nu e
-
Am gamemode-ul pro-gaming 4.8.4 si as vrea sa fac o comanda "/acreatecar" ca sa pot adauga masini direct din joc dar nu stiu cum sa o fac [download]http://www.sendspace.com/file/uz0dgn[/download]
-
A mers am avut rabdare si am facut identarile calumea si erorile cu return value nu mergeau rezolvate decat dupa ce am identat cum trebuie
-
Am 2 filterscripturi unul de animatii si un minigame si se incurca unele coduri si nu merg cum trebuie fs-urile Minigame-ul ar trebui sa arate asa: http://www.youtube.com/watch?v=88GXMtHw0b0#normal Dar la mine nu arata ozn-urile si rachetele Si sistemul de animatii cand scriu o comanda imi apare pe ecran un textdraw de la minigame: Sistemul de animatii e la attachments Si minigame-ul aici: http://pastebin.com/cMQdeKjT
-
la fel face si dupa ce pun #pragma tabsize 0
-
Am incercat si eu ce mi-ai aratat mai sus si nu rezolva nimic doar imi da si o eroare in plus fata de warning-uri SDM.pwn(236) : warning 217: loose indentation SDM.pwn(248) : warning 217: loose indentation SDM.pwn(260) : warning 217: loose indentation SDM.pwn(287) : warning 217: loose indentation SDM.pwn(299) : warning 217: loose indentation SDM.pwn(311) : warning 217: loose indentation SDM.pwn(338) : warning 217: loose indentation SDM.pwn(365) : warning 217: loose indentation SDM.pwn(377) : warning 217: loose indentation SDM.pwn(389) : warning 217: loose indentation SDM.pwn(443) : warning 209: function "Streamer_OnPlayerEditObject" should return a value SDM.pwn(450) : warning 217: loose indentation SDM.pwn(476) : error 078: function uses both "return" and "return <value>" SDM.pwn(479) : warning 209: function "Streamer_OnPlayerEditObject" should return a value SDM.pwn(483) : warning 217: loose indentation SDM.pwn(491) : warning 217: loose indentation SDM.pwn(514) : warning 217: loose indentation
-
Daca fac cum ai zis imi mai da in plus fata de warninguri o eroare so it's not working: [pawn] SDM.pwn(477) : error 078: function uses both "return" and "return <value>" [/pawn]
-
Aici imi da warning-urile cu loose indentation [pawn] public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch(dialogid) { case 509: { if(!response) { SendClientMessage(playerid, 0x42F3F198, "You canceled the dialog."); return 1; } switch(listitem) { case 0: { ShowPlayerDialog(playerid, 510, DIALOG_STYLE_LIST, "Furniture Chairs", "Chair1\nChair2\nChair3\nChair4", "Ok", "Cancel"); } case 1: { ShowPlayerDialog(playerid, 511, DIALOG_STYLE_LIST, "Furniture Beds", "Bed1\nBed2\nBed3\nBed4", "Ok", "Cancel"); } case 2: { ShowPlayerDialog(playerid, 512, DIALOG_STYLE_LIST, "Furniture Tables", "Table1\nTable2\nTable3", "Ok", "Cancel"); } case 3: { ShowPlayerDialog(playerid, 513, DIALOG_STYLE_LIST, "Furniture T.V", "TV1\n TV2\n TV3", "Ok", "Cancel"); } case 4: { ShowPlayerDialog(playerid, 514, DIALOG_STYLE_LIST, "Furniture Cabinet", "Cabinet 1", "Ok", "Cancel"); } case 5: { ShowPlayerDialog(playerid, 515, DIALOG_STYLE_LIST, "Furniture Misc", "Basket Ball net\nClothes\nEaster Egg", "Ok", "Cancel"); } //You can continue cases here but make sure you make a new line in the ShowPlayerDialog on /mp3 command \r\n4. 4th \r\n5. 5th channel etc.. } } } switch(dialogid) { case 510: { if(!response) { SendClientMessage(playerid, 0x42F3F198, "You canceled the dialog."); return 1; } switch(listitem) { case 0: { new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ; GetPlayerPos(playerid, OX, OY, OZ); oModel = 1723; ORX = 0.0; ORY = 0.0; ORZ = 0.0; Object = CreateObject(1723, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance. SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it"); EditObject(playerid, Object); } case 1: { new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ; GetPlayerPos(playerid, OX, OY, OZ); oModel = 1704; ORX = 0.0; ORY = 0.0; ORZ = 0.0; Object = CreateObject(1704, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance. SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it"); EditObject(playerid, Object); } case 2: { new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ; GetPlayerPos(playerid, OX, OY, OZ); oModel = 11665; ORX = 0.0; ORY = 0.0; ORZ = 0.0; Object = CreateObject(11665, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance. SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it"); EditObject(playerid, Object); } case 3: { new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ; GetPlayerPos(playerid, OX, OY, OZ); oModel = 1705; ORX = 0.0; ORY = 0.0; ORZ = 0.0; Object = CreateObject(1705, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance. SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it"); EditObject(playerid, Object); } //You can continue cases here but make sure you make a new line in the ShowPlayerDialog on /mp3 command \r\n4. 4th \r\n5. 5th channel etc.. } } } switch(dialogid) { case 511: { if(!response) { SendClientMessage(playerid, 0x42F3F198, "You canceled the dialog."); return 1; } switch(listitem) { case 0: { new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ; GetPlayerPos(playerid, OX, OY, OZ); oModel = 1745; ORX = 0.0; ORY = 0.0; ORZ = 0.0; Object = CreateObject(1745, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance. SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it"); EditObject(playerid, Object); } case 1: { new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ; GetPlayerPos(playerid, OX, OY, OZ); oModel = 1794; ORX = 0.0; ORY = 0.0; ORZ = 0.0; Object = CreateObject(1794, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance. SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it"); EditObject(playerid, Object); } case 2: { new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ; GetPlayerPos(playerid, OX, OY, OZ); oModel = 1797; ORX = 0.0; ORY = 0.0; ORZ = 0.0; Object = CreateObject(1797, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance. SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it"); EditObject(playerid, Object); } case 3: { new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ; GetPlayerPos(playerid, OX, OY, OZ); oModel = 2566; ORX = 0.0; ORY = 0.0; ORZ = 0.0; Object = CreateObject(2566, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance. SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it"); EditObject(playerid, Object); } //You can continue cases here but make sure you make a new line in the ShowPlayerDialog on /mp3 command \r\n4. 4th \r\n5. 5th channel etc.. } } } switch(dialogid) { case 512: { if(!response) { SendClientMessage(playerid, 0x42F3F198, "You canceled the dialog."); return 1; } switch(listitem) { case 0: { new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ; GetPlayerPos(playerid, OX, OY, OZ); oModel = 1281; ORX = 0.0; ORY = 0.0; ORZ = 0.0; Object = CreateObject(1281, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance. SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it"); EditObject(playerid, Object); } case 1: { new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ; GetPlayerPos(playerid, OX, OY, OZ); oModel = 2311; ORX = 0.0; ORY = 0.0; ORZ = 0.0; Object = CreateObject(2311, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance. SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it"); EditObject(playerid, Object); } case 2: { new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ; GetPlayerPos(playerid, OX, OY, OZ); oModel = 1825; ORX = 0.0; ORY = 0.0; ORZ = 0.0; Object = CreateObject(1825, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance. SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it"); EditObject(playerid, Object); } //You can continue cases here but make sure you make a new line in the ShowPlayerDialog on /mp3 command \r\n4. 4th \r\n5. 5th channel etc.. } } } switch(dialogid) { case 513: { if(!response) { SendClientMessage(playerid, 0x42F3F198, "You canceled the dialog."); return 1; } switch(listitem) { case 0: { new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ; GetPlayerPos(playerid, OX, OY, OZ); oModel = 2297; ORX = 0.0; ORY = 0.0; ORZ = 0.0; Object = CreateObject(2297, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance. SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it"); EditObject(playerid, Object); } case 1: { new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ; GetPlayerPos(playerid, OX, OY, OZ); oModel = 2296; ORX = 0.0; ORY = 0.0; ORZ = 0.0; Object = CreateObject(2296, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance. SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it"); EditObject(playerid, Object); } case 2: { new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ; GetPlayerPos(playerid, OX, OY, OZ); oModel = 2595; ORX = 0.0; ORY = 0.0; ORZ = 0.0; Object = CreateObject(2595, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance. SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it"); EditObject(playerid, Object); } //You can continue cases here but make sure you make a new line in the ShowPlayerDialog on /mp3 command \r\n4. 4th \r\n5. 5th channel etc.. } } } switch(dialogid) { case 514: { if(!response) { SendClientMessage(playerid, 0x42F3F198, "You canceled the dialog."); return 1; } switch(listitem) { case 0: { new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ; GetPlayerPos(playerid, OX, OY, OZ); oModel = 2078; ORX = 0.0; ORY = 0.0; ORZ = 0.0; Object = CreateObject(2078, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance. SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it"); EditObject(playerid, Object); } //You can continue cases here but make sure you make a new line in the ShowPlayerDialog on /mp3 command \r\n4. 4th \r\n5. 5th channel etc.. } } } switch(dialogid) { case 515: { if(!response) { SendClientMessage(playerid, 0x42F3F198, "You canceled the dialog."); return 1; } switch(listitem) { case 0: { new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ; GetPlayerPos(playerid, OX, OY, OZ); oModel = 3496; ORX = 0.0; ORY = 0.0; ORZ = 0.0; Object = CreateObject(3496, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance. SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it"); EditObject(playerid, Object); } case 1: { new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ; GetPlayerPos(playerid, OX, OY, OZ); oModel = 2844; ORX = 0.0; ORY = 0.0; ORZ = 0.0; Object = CreateObject(2844, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance. SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it"); EditObject(playerid, Object); } case 2: { new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ; GetPlayerPos(playerid, OX, OY, OZ); oModel = 19343; ORX = 0.0; ORY = 0.0; ORZ = 0.0; Object = CreateObject(19343, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance. SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it"); EditObject(playerid, Object); } //You can continue cases here but make sure you make a new line in the ShowPlayerDialog on /mp3 command \r\n4. 4th \r\n5. 5th channel etc.. } } } return 1; } [/pawn] Si aici imi da cele cu OnPlayerEditObject [pawn] public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ) { new Float:oldX, Float:oldY, Float:oldZ, Float:oldRotX, Float:oldRotY, Float:oldRotZ; GetObjectPos(objectid, oldX, oldY, oldZ); GetObjectRot(objectid, oldRotX, oldRotY, oldRotZ); new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ, OVW, OINT; if(!playerobject) // If this is a global object, move it for other players { if(!IsValidObject(objectid)) return; MoveObject(objectid, fX, fY, fZ, 10.0, fRotX, fRotY, fRotZ); } if(response == EDIT_RESPONSE_FINAL) { new string[254]; OVW = GetPlayerVirtualWorld(playerid); OINT = GetPlayerInterior(playerid); GetObjectPos(objectid, OX, OY, OZ); GetObjectRot(objectid, ORX, ORY, ORZ); AddObjectToFile(OBJECT_FILE_NAME, OX, OY, OZ, ORX, ORY, ORZ, OVW, OINT); SendClientMessage(playerid, COLOR_BLUE, "Object Saved, Please add more if you wish"); format(string, sizeof(string), "Object model %i spawned at %f, %f, %f, with rotation %f, %f, %f,", oModel, OX, OY, OZ, ORX, ORY, ORZ); SendClientMessage(playerid, 0xD8D8D8FF, string); format(string, sizeof(string), "Object world %i interior id %i", OVW, OINT); SendClientMessage(playerid, 0xD8D8D8FF, string); CreateDynamicObject(oModel, Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ, OVW, OINT, -1, 200.0); DestroyObject(Object); } if(response == EDIT_RESPONSE_CANCEL) { //The player cancelled, so put the object back to it's old position if(!playerobject) //Object is not a playerobject { SetObjectPos(objectid, oldX, oldY, oldZ); SetObjectRot(objectid, oldRotX, oldRotY, oldRotZ); } else { SetPlayerObjectPos(playerid, objectid, oldX, oldY, oldZ); SetPlayerObjectRot(playerid, objectid, oldRotX, oldRotY, oldRotZ); } } } [/pawn]
-
Am acest filterscript Si am vreo 16 wwarning-uri la el si nu stiu sa le rezolv asa l-am descarcat o parte am reusit sa le rezolv dar celorlalte nu le dau de cap Astea sunt warning-urile care nu reusesc sa le rezolv: [pawn] SDM.pwn(236) : warning 217: loose indentation SDM.pwn(248) : warning 217: loose indentation SDM.pwn(260) : warning 217: loose indentation SDM.pwn(287) : warning 217: loose indentation SDM.pwn(299) : warning 217: loose indentation SDM.pwn(311) : warning 217: loose indentation SDM.pwn(338) : warning 217: loose indentation SDM.pwn(365) : warning 217: loose indentation SDM.pwn(377) : warning 217: loose indentation SDM.pwn(389) : warning 217: loose indentation SDM.pwn(443) : warning 209: function "Streamer_OnPlayerEditObject" should return a value SDM.pwn(450) : warning 217: loose indentation SDM.pwn(478) : warning 209: function "Streamer_OnPlayerEditObject" should return a value SDM.pwn(482) : warning 217: loose indentation SDM.pwn(490) : warning 217: loose indentation SDM.pwn(513) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 3612 bytes Code size: 111628 bytes Data size: 62064 bytes Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion Total requirements: 193688 bytes 16 Warnings. [/pawn]
-
mersi de tutorial
-
Am acest filterscript:http://www.sendspace.com/file/6962t1 Si as vrea sa adaug un [pawn]if(strcmp(x_nr,...[/pawn] la comanda /hedit care sa schimbe descrierea caselor si nu stiu de unde sa incep pentru ca am incercat deja multe modalitati ma puteti ajuta?