nhunor58
Membru-
Posts
24 -
Joined
-
Last visited
Never
nhunor58's Achievements
-
Pai am asa:[pawn]enum drift_checkpoints { Float:check_x, Float:check_y, Float:check_z };[/pawn] [pawn]new Drift_Checkpoint[ MAX_DRIFTS ][/pawn]
-
UP!Help please!
-
Dar acesta nu e o cursa,ci o comanda cu care urmezi checkpointuri si la final primesti drift points :S
-
Salutare toti! Cand intru in checkpointul specializat unde pot folosi comanda /drift cand scriu acea comanda ma pune in masina elegy dar checkpointurile nu apar.. Comanda:[pawn]CMD:drift( playerid, params[ ] ) { if ( IsPlayerInAnyVehicle( playerid ) ) return SendError( playerid, "Please exit the vehicle first" ); for ( new i = 1; i < MAX_DRIFTS; i++ ) if ( IsPlayerInDynamicRaceCP( playerid, drift_cp[ i ] ) ) PlayerInfo[ playerid ][ Race_CP ] = i; if ( PlayerInfo[ playerid ][ Race_CP ] == 0 || PlayerInfo[ playerid ][ Race_CP ] > 7 ) return SendError( playerid, "You are not in any race checkpoint !" ); LoadDriftCheckpoints( PlayerInfo[ playerid ][ Race_CP ] ); CarSpawner( playerid, 562 ); SetVehicleVirtualWorld( GetPlayerVehicleID( playerid ), 1 ); SetPlayerVirtualWorld( playerid, 1 ); if ( Speeding[ playerid ] ) Speeding[ playerid ] = false; if ( PlayerInfo[ playerid ][ Vup ] == 1 ) PlayerInfo[ playerid ][ Vup ] = 0; SetPlayerRaceCheckpoint( playerid, 0, Drift_Checkpoint[ PlayerInfo[ playerid ][ Race_CP ] ][ 1 ][ gfDrift_X ], Drift_Checkpoint[ PlayerInfo[ playerid ][ Race_CP ] ][ 1 ][ gfDrift_Y ], Drift_Checkpoint[ PlayerInfo[ playerid ][ Race_CP ] ][ 1 ][ gfDrift_Z ], Drift_Checkpoint[ PlayerInfo[ playerid ][ Race_CP ] ][ 2 ][ gfDrift_X ], Drift_Checkpoint[ PlayerInfo[ playerid ][ Race_CP ] ][ 2 ][ gfDrift_Y ], Drift_Checkpoint[ PlayerInfo[ playerid ][ Race_CP ] ][ 2 ][ gfDrift_Z ], 10.0 ); Announce( playerid, "~r~~h~GO!~n~~y~~h~GO!~n~~g~~h~GO!", 3000, 4 ); PlayerInfo[ playerid ][ ActionID ] = 13; DriftTime[ playerid ] = GetTickCount( ); return 1; }[/pawn]
-
Sau i-ati o versiune statica a pluginului MySQL...
-
1.Stiu ca nu este forum de minecraft....dar este categoria Let's talk... 2.Nici nu stiam de siteul ala :O
-
Stie cineva un hosting minecraft care ofera servicii de gazduire ieftin?? Nu imi trebuie multe sloturi!!
-
Eu il am hostat la www.proservers.ro 50 de sloturi 4 euro,la 45 de playeri ON nu era lag,eu sunt multumit...
-
5/5 foarte frumos
-
Cineva pls help!!
-
Deci am un MINIGUN deathmatch FILTERSCRIPT...Am 2 probleme cu el; 1)Cand mor nu respawnez IN DM 2)Cand ies din dm NU dezactiveaza world bounderies-urile.. Aici este:[pawn]#include <a_samp> #define COLOR_LIGHTBLUE 0x33CCFF19//define for lightblue new String[256]; // String for messages new InDM[MAX_PLAYERS]; // We will use it later to tell the script if the player is in DM or not new Float:DMSpawns[][4] = { // Random spawns so players won't spawn at the same place {1410.5425,2176.3142,12.0156}, {1370.7050,2196.3381,9.7578}, {1416.5570,2102.6685,23.4782} //I will be using 3 you can add more if you want }; public OnPlayerConnect(playerid) { InDM[playerid] = 0; // This will set the player as not in DM return 1; } public OnPlayerDisconnect(playerid, reason) { InDM[playerid] = 0; // Makes the player set as not in the DM return 1; } public OnPlayerSpawn(playerid) { if(InDM[playerid] == 1)//This will tell the script to respawn only the players that inside DM { SetPlayerInterior(playerid, 0); // We will set the interior to 0 (you can change it to your own DM) SetPlayerVirtualWorld(playerid, 10); // and we will make the Virtual World in different world, so we wont mix with other players new rand = random(sizeof(DMSpawns)); // DM Spawn SetPlayerPos(playerid, DMSpawns[rand][0], DMSpawns[rand][1], DMSpawns[rand][2]);// we will set the player position at DM SetPlayerFacingAngle(playerid, DMSpawns[rand][3]); // Also facing Angle //and we will give him weapons, I will give 2 weapons GivePlayerWeapon(playerid, 24, 1500); // Desert Eagle GivePlayerWeapon(playerid, 26, 1500); // Sawnoff Shutgun //you can edit them, or add more weapons } return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/minigun", cmdtext, true, 4) == 0) //(/dm) command { new PlayerName[MAX_PLAYER_NAME];//Player name GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); if(InDM[playerid] == 0)//if the player is not in DM {//then InDM[playerid] = 1; // Now we will set him in DM so he will respawn at DM SendClientMessage(playerid, COLOR_LIGHTBLUE , "You have joined /dm, to leave type /dm again");//Message to tell him that he joined DM format(String, sizeof(String), "Server:{FFFFFF}%s(%d) has joined DM(/dm)", PlayerName, playerid); SendClientMessageToAll(COLOR_LIGHTBLUE, String);//Message to tell everyone that he joined DM SetPlayerInterior(playerid, 0); SetPlayerWorldBounds(playerid, 1439.348, 1271.44, 2235.263, 2080.541); // Just like we did before we will set he's interior to 0 SetPlayerVirtualWorld(playerid, 10); // and same here Virtual World to 10 new rand = random(sizeof(DMSpawns)); // DM Spawn SetPlayerPos(playerid, DMSpawns[rand][0], DMSpawns[rand][1], DMSpawns[rand][2]);// we will set the player position at DM SetPlayerFacingAngle(playerid, DMSpawns[rand][3]); // Also facing Angle //and we will give him weapons, I will give 2 weapons GivePlayerWeapon(playerid, 38, 99999); // Desert Eagle //you can edit them, or add more weapons if you want } else {//if the player is already in DM, he will leave InDM[playerid] = 0; //So now we will set him as not in DM SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have left /dm to join again type /dm");//We will send him a message to tell him that he left SpawnPlayer(playerid);//We will spawn the player now SetPlayerHealth(playerid, 100);//set he's health to 100 ResetPlayerWeapons(playerid);// and reset he's weapons SetPlayerVirtualWorld(playerid, 0);//we will set he's virtual world to 0 SetPlayerInterior(playerid, 0);//also interior to 0 } return 1; } return 0; }[/pawn]
-
Il mai am la PM system si daca il sterg de acolo atunci pawno has stopped working imi da,cand dau compile..
-
Mersi foarte mult dar problema cu OnDialogResponse care e definita de doua ori nu poate ramane asa fara sa primesc erori???
-
Acum partea aceia din script arata asa:[pawn]dcmd_buyvip(playerid,params[]) //Adaugati oriunde in GameMode { #pragma unused params ShowPlayerDialog(playerid,bvip,DIALOG_STYLE_LIST,"BuyVip","{FFFFFF}Level 1 {FFAF00} --> {FF0000} 5 Ore\n{FFFFFF}Level 2 {FFAF00} --> {FF0000} 10 Ore\n{FFFFFF}Level 3 {FFAF00} --> {FF0000}15 Ore","Select","Cancel"); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if (dialogid == bvip) { if(response) { if(listitem == 0) { if AccInfo[playerid][hours] >= 5) //Orele care trebuie sa le aiba playerul { AccInfo[playerid][pVip] = 1; //Levelul la VIP AccInfo[playerid][hours] -= 5; } else { SendClientMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore destule } } if(listitem == 1) { if AccInfo[playerid][hours] >= 10) //Orele pentru a cumpara VIP { AccInfo[playerid][pVip] = 2; //Levelul de VIP AccInfo[playerid][hours] -= 10; } else { SendClientMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore suficiente } } if (listitem == 2) { if AccInfo[playerid][hours] >= 15) //Orele care trebuiesc pentru a cumpara VIP { AccInfo[playerid][pVip] = 3; //Levelul VIP AccInfo[playerid][hours] = 15; } else { SendClientMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are destule ore } } } } return 1; }[/pawn] Iar primesc 12 erori: C:\Users\Hunor\Desktop\testing.pwn(6736) : error 017: undefined symbol "bvip" C:\Users\Hunor\Desktop\testing.pwn(6741) : error 017: undefined symbol "bvip" C:\Users\Hunor\Desktop\testing.pwn(6747) : error 001: expected token: "*then", but found ")" C:\Users\Hunor\Desktop\testing.pwn(6747) : error 029: invalid expression, assumed zero C:\Users\Hunor\Desktop\testing.pwn(6752) : error 029: invalid expression, assumed zero C:\Users\Hunor\Desktop\testing.pwn(6759) : error 001: expected token: "*then", but found ")" C:\Users\Hunor\Desktop\testing.pwn(6759) : error 029: invalid expression, assumed zero C:\Users\Hunor\Desktop\testing.pwn(6764) : error 029: invalid expression, assumed zero C:\Users\Hunor\Desktop\testing.pwn(6771) : error 001: expected token: "*then", but found ")" C:\Users\Hunor\Desktop\testing.pwn(6771) : error 029: invalid expression, assumed zero C:\Users\Hunor\Desktop\testing.pwn(6776) : error 029: invalid expression, assumed zero C:\Users\Hunor\Desktop\testing.pwn(7458) : warning 217: loose indentation C:\Users\Hunor\Desktop\testing.pwn(7466) : warning 225: unreachable code C:\Users\Hunor\Desktop\testing.pwn(8656) : error 021: symbol already defined: "OnDialogResponse" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 12 Errors.
-
Deci cu ajutorul unui tutorial de la gta-mp am incercat sa pun un /buyvip in scriptul LuxAdmin l-am adaugat unde sunt si celalalte comenzi si arata cam asa:[pawn] dcmd_buyvip(playerid,params[]) //Adaugati oriunde in GameMode { #pragma unused params ShowPlayerDialog(playerid,bvip,DIALOG_STYLE_LIST,"BuyVip","{FFFFFF}Level 1 {FFAF00} --> {FF0000} 20 Ore\n{FFFFFF}Level 2 {FFAF00} --> {FF0000} 40 Ore\n{FFFFFF}Level 3 {FFAF00} --> {FF0000}60 Ore","Select","Cancel); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if (dialogid == bvip) { if(response) { if(listitem == 0) { if AccInfo[playerid][hours] >= 5) //Orele care trebuie sa le aiba playerul { AccInfo[playerid][pVip] = 1; //Levelul la VIP AccInfo[playerid][hours] -= 5; } else { SendClienMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore destule } } if(listitem == 1) { if AccInfo[playerid][hours] >= 10) //Orele pentru a cumpara VIP { AccInfo[playerid][pVip] = 2; //Levelul de VIP AccInfo[playerid][hours] -= 10; } else { SendClienMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore suficiente } } if (listitem == 2) { if AccInfo[playerid][hours] >= 15) //Orele care trebuiesc pentru a cumpara VIP { AccInfo[playerid][pVip] = 3; //Levelul VIP AccInfo[playerid][hours] = 15; } else { SendClienMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are destule ore } } } return 1; }[/pawn] Si la compilare primesc erori: C:\Users\Hunor\Desktop\testing.pwn(478) : error 017: undefined symbol "UpdateConfig" C:\Users\Hunor\Desktop\testing.pwn(479) : error 017: undefined symbol "ReadTextDraws" C:\Users\Hunor\Desktop\testing.pwn(498) : error 017: undefined symbol "ShowConfigInConsole" C:\Users\Hunor\Desktop\testing.pwn(523) : error 004: function "SaveTeleport" is not implemented C:\Users\Hunor\Desktop\testing.pwn(625) : error 004: function "SaveIn" is not implemented C:\Users\Hunor\Desktop\testing.pwn(640) : error 004: function "SaveIn" is not implemented C:\Users\Hunor\Desktop\testing.pwn(660) : error 004: function "SaveIn" is not implemented C:\Users\Hunor\Desktop\testing.pwn(703) : error 017: undefined symbol "LoginPlayer" C:\Users\Hunor\Desktop\testing.pwn(775) : error 004: function "SaveIn" is not implemented C:\Users\Hunor\Desktop\testing.pwn(793) : error 017: undefined symbol "SavePlayerStats" C:\Users\Hunor\Desktop\testing.pwn(821) : error 004: function "EraseVeh" is not implemented C:\Users\Hunor\Desktop\testing.pwn(827) : error 017: undefined symbol "AdvanceSpectate" C:\Users\Hunor\Desktop\testing.pwn(1026) : error 017: undefined symbol "AdvanceSpectate" C:\Users\Hunor\Desktop\testing.pwn(1043) : error 004: function "MessageToPlayerVIP" is not implemented C:\Users\Hunor\Desktop\testing.pwn(1044) : error 004: function "SaveIn" is not implemented C:\Users\Hunor\Desktop\testing.pwn(1054) : error 004: function "MessageToAdmins" is not implemented C:\Users\Hunor\Desktop\testing.pwn(1056) : error 004: function "SaveIn" is not implemented C:\Users\Hunor\Desktop\testing.pwn(1085) : error 004: function "SaveIn" is not implemented C:\Users\Hunor\Desktop\testing.pwn(1103) : error 004: function "SaveIn" is not implemented C:\Users\Hunor\Desktop\testing.pwn(1144) : error 017: undefined symbol "AdvertisementCheck" C:\Users\Hunor\Desktop\testing.pwn(1157) : error 004: function "SaveIn" is not implemented C:\Users\Hunor\Desktop\testing.pwn(1204) : error 004: function "SaveIn" is not implemented C:\Users\Hunor\Desktop\testing.pwn(1225) : error 004: function "SaveIn" is not implemented C:\Users\Hunor\Desktop\testing.pwn(1503) : error 017: undefined symbol "TotalGameTime" C:\Users\Hunor\Desktop\testing.pwn(1826) : error 017: undefined symbol "ReturnUser" C:\Users\Hunor\Desktop\testing.pwn(1848) : error 017: undefined symbol "SendCommandToAdmins" Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 26 Errors. Deci stiu ca problema e la AccInfo acela,trebuie schimbat cum este la luxadmin pentru vip,dar nu stiu cum...Va rog ajutor! PS:Sub OnPlayerCommandText mai am:[pawn]{ dcmd(buyvip,6,cmdtext); return 1; }[/pawn]