JanikMan 0 Odesláno: 23. Únor, 2010 Share Odesláno: 23. Únor, 2010 ked som vymazal end if vypise mi toto 15) : error 004: function "GetDistanceBetweenPlayers" is not implemented (87) : error 001: expected token: "#endif", but found "-end of file-" Link to comment Share on other sites More sharing options...
Guest FaNtOm Odesláno: 23. Únor, 2010 Share Odesláno: 23. Únor, 2010 Mno pěkný ae chybičky: error 035: argument type mismatch (argument 2) error 035: argument type mismatch (argument 1) Řádky: GetPlayerName(bot, bot, 24); format(27,"%s: Ahoj, nezajdem na pivo?",name); poradí někdo?prosím Link to comment Share on other sites More sharing options...
JanikMan 0 Odesláno: 23. Únor, 2010 Share Odesláno: 23. Únor, 2010 dpc. mam to takto #include #define COLOR_RED 0xE10000AA stock GetClosestPlayer(playerid) { new Float:x, Float:y, Float:z; new Float:x2, Float:y2, Float:z2; new Float:distance, Float:distance2; new ClosestPlayer; GetPlayerPos(playerid, x, y, z); distance = 9999; for(new i = 0; i < MAX_PLAYERS; i ++) { if(i != playerid) { GetPlayerPos(i, x2, y2, z2); x = x - x2; y = y - y2; distance2 = floatsqroot(x*x+y*y); if(distance2 < distance) { distance = distance2; ClosestPlayer = i; } } } return ClosestPlayer; } forward GetDistanceBetweenPlayers(playerid,playerid2); #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Blank Script"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1; } public OnPlayerText(playerid, text[]) { new bot = GetClosestPlayer(playerid); //vytvoříme nového bota new botnik[MAX_PLAYERS]; new to_others[MAX_PLAYERS]; new name[24]; GetPlayerName(bot, botnik, 24); //jméno bota if(IsPlayerNPC(bot)) //pokud neni hráč ale NPC { if(!strcmp(text,"xxx",true)) //zpráva kterou musí hráč napsat { format(to_others,27,"%s: Ahoj, nezajdem na pivo?",name); //NPC odpoví... SetPlayerChatBubble(bot,to_others,COLOR_RED,35.0,10000); //barva a pozice bubliny } if(!strcmp(text,"prikazy?",true)) { format(to_others,16,"%s: /commands :)",name); SetPlayerChatBubble(bot,to_others,COLOR_RED,35.0,10000); } if(!strcmp(text,"botniku das mi hp?",true)) { format(to_others,18,"%s: ani náhodou :D",name); SetPlayerChatBubble(bot,to_others,COLOR_RED,35.0,10000); } return 1; } #endif public GetDistanceBetweenPlayers(playerid,playerid2){ new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2; new Float:tmpdis; GetPlayerPos(playerid,x1,y1,z1); GetPlayerPos(playerid2,x2,y2,z2); tmpdis = floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2)); return floatround(tmpdis); } a teraz ked napisem daco tak vobec nenapise nic Link to comment Share on other sites More sharing options...
Guest FaNtOm Odesláno: 23. Únor, 2010 Share Odesláno: 23. Únor, 2010 Díky už to de Link to comment Share on other sites More sharing options...
Guest Denny159258 Odesláno: 23. Únor, 2010 Share Odesláno: 23. Únor, 2010 To JanikMan - strašne ma to se*e!!! Používaj EDIT A nespamuj, nepíš doubleposty!!! Strašne to dokáže nas*ať, že keď to jedného príspevku napíšeš errory, a do druhého "pls help" !! Tak používaj EDIT!!!!!!!!!!!!!!!!!!!!!!! Link to comment Share on other sites More sharing options...
JanikMan 0 Odesláno: 23. Únor, 2010 Share Odesláno: 23. Únor, 2010 denny ja nikde nevidim DP Link to comment Share on other sites More sharing options...
Lukman 0 Odesláno: 23. Únor, 2010 Share Odesláno: 23. Únor, 2010 lol to je bizonovina 10/10 "lol" Link to comment Share on other sites More sharing options...
Guest Denny159258 Odesláno: 23. Únor, 2010 Share Odesláno: 23. Únor, 2010 Nevidíš?? Ja ti ich ukážem! Pise mi 26 errorov Napsal: ned 13. zář 2009 14:27:17Tu si mal IMG A mam to tam presne tak ako to je uvedene ako ma vyzerat script presne tak to mam pls help Napsal: ned 13. zář 2009 16:22:56 Nevidíš DP?? Pozri si túto tému na druhej strane!!! Link to comment Share on other sites More sharing options...
Guest Frodo Odesláno: 23. Únor, 2010 Share Odesláno: 23. Únor, 2010 Ty "Odborníku", tady je AntiDoublePost takže zpátky zalez STOP OT Link to comment Share on other sites More sharing options...
Guest Denny159258 Odesláno: 23. Únor, 2010 Share Odesláno: 23. Únor, 2010 Ty "Odborníku", tady je AntiDoublePost takže zpátky zalez STOP OT Hmmm..tak to som fakt nevedel! Sorry berem spet Link to comment Share on other sites More sharing options...
_Killer_ 1 Odesláno: 24. Únor, 2010 Share Odesláno: 24. Únor, 2010 j uz som to dakte videl uz nwm ale diki viuzijem to Link to comment Share on other sites More sharing options...
Cz_Ritch 0 Odesláno: 24. Únor, 2010 Share Odesláno: 24. Únor, 2010 v poho tut! Link to comment Share on other sites More sharing options...
Konvicka 0 Odesláno: 26. Únor, 2010 Share Odesláno: 26. Únor, 2010 Sorry že otravuju ale háže mě to 3 errory C:\Documents and Settings\Burýšek ml\Plocha\idiots.pwn(1874) : error 017: undefined symbol "botnik" C:\Documents and Settings\Burýšek ml\Plocha\idiots.pwn(1879) : error 035: argument type mismatch (argument 1) C:\Documents and Settings\Burýšek ml\Plocha\idiots.pwn(1880) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\Burýšek ml\Plocha\idiots.pwn(1873) : warning 203: symbol is never used: "to_others" Pls help Link to comment Share on other sites More sharing options...
_Killer_ 1 Odesláno: 26. Únor, 2010 Share Odesláno: 26. Únor, 2010 daj riadky Link to comment Share on other sites More sharing options...
CZskypr 0 Odesláno: 12. Červenec, 2010 Share Odesláno: 12. Červenec, 2010 Tut Se mi libi ale hodi mi chibi tak s tim potrebujem pomoc -- pát 16. črc 2010 19:19:34 -- mate tam erorr dejte mi k ňi definici error 017: undefined symbol "to_others" -- pát 16. črc 2010 19:33:53 -- Maš tam erori daj nam define k tomuto erouru error 017: undefined symbol "to_others" Link to comment Share on other sites More sharing options...
Guest dajmon Odesláno: 8. Srpen, 2010 Share Odesláno: 8. Srpen, 2010 pls help D:\pawno a blbosti\filterscripts\vojvoda.pwn(92) : error 012: invalid function call, not a valid address D:\pawno a blbosti\filterscripts\vojvoda.pwn(92) : warning 215: expression has no effect D:\pawno a blbosti\filterscripts\vojvoda.pwn(92) : error 001: expected token: ";", but found ")" D:\pawno a blbosti\filterscripts\vojvoda.pwn(92) : error 029: invalid expression, assumed zero D:\pawno a blbosti\filterscripts\vojvoda.pwn(92) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. // This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include new vojak; new GetClosestPlayer; #if defined FILTERSCRIPT forward GetClosestPlayer(p1); #define COLOR_GREEN 0x33AA33AA #define COLOR_RED 0xAA3333AA public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } #endif public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Blank Script"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerConnect(playerid) { return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { new bot = GetClosestPlayer(playerid); new name[24]; new RandR = random(60); //vytvoříme si random GetPlayerName(vojak, vojak, 24); //jméno bota if(IsPlayerNPC(bot)) //pokud neni hráč ale NPC { if(!strcmp(text,"ahoj, jsi chytry bot?",true)) { if(RandR == 1) { format(to_others, 39,"vojak: Ahoj, nejsem chytrý bot. Bohužel :(",name); SetPlayerChatBubble(bot,to_others,COLOR_RED,35.0,10000); } else if(RandR == 2) //a tak dále... { if(!strcmp(text,"ahoj",true)) { if(RandR == 3) { format(to_others, 39,"vojak: cuss",name); SetPlayerChatBubble(bot,to_others,COLOR_GREEN,35.0,10000); } else if(RandR == 4) //a tak dále.. { if(!strcmp(text,"cuss",true)) { if(RandR == 5) { format(to_others, 39,"vojak: nazdar",name); SetPlayerChatBubble(bot,to_others,COLOR_GREEN,35.0,10000); } else if(RandR == 6) //a tak dále.. { if(!strcmp(text,"hello",true)) { if(RandR == 7) { format(to_others, 39,"vojak: hi",name); SetPlayerChatBubble(bot,to_others,COLOR_GREEN,35.0,10000); } else if(RandR == 8) //a tak dále.. { if(!strcmp(text,"hi",true)) { if(RandR == 9) { format(to_others, 39,"vojak: hello",name); SetPlayerChatBubble(bot,to_others,COLOR_GREEN,35.0,10000); } else if(RandR == 10) //a tak dále.. { if(!strcmp(text,"bu*na",true)) { if(RandR == 11) { format(to_others, 39,"vojak: nenadavaj debile",name); SetPlayerChatBubble(bot,to_others,COLOR_RED,35.0,10000); } else if(RandR == 12) //a tak dále.. { if(!strcmp(text,"pica",true)) { if(RandR == 13) { format(to_others, 39,"vojak: sam si pica kokote",name); SetPlayerChatBubble(bot,to_others,COLOR_RED,35.0,10000); } else if(RandR == 14) //a tak dále.. { if(!strcmp(text,"kkt",true)) { if(RandR == 15) { format(to_others, 39,"vojak: si postihnuty?",name); SetPlayerChatBubble(bot,to_others,COLOR_RED,35.0,10000); } else if(RandR == 16) //a tak dále.. { if(!strcmp(text,"sobeit",true)) { if(RandR == 17) { format(to_others, 39,"vojak: pci chodte aj s vasim sobeitom dpci",name); SetPlayerChatBubble(bot,to_others,COLOR_RED,35.0,10000); } else if(RandR == 18) //a tak dále.. { if(!strcmp(text,"kkt",true)) { if(RandR == 19) { format(to_others, 39,"vojak: jebly decko nenadav telo",name); SetPlayerChatBubble(bot,to_others,COLOR_RED,35.0,10000); } else if(RandR == 20) //a tak dále.. { if(!strcmp(text,"?",true)) { if(RandR == 21) { format(to_others, 39,"vojak: to si sa pital mna",name); SetPlayerChatBubble(bot,to_others,COLOR_GREEN,35.0,10000); } else if(RandR == 22) //a tak dále.. { if(!strcmp(text,"vojak?",true)) { if(RandR == 23) { format(to_others, 39,"vojak: co chces?",name); SetPlayerChatBubble(bot,to_others,COLOR_GREEN,35.0,10000); } else if(RandR == 24) //a tak dále.. { if(!strcmp(text,"vojak das mi auto?",true)) { if(RandR == 25) { format(to_others, 39,"vojak: nesom admin :(",name); SetPlayerChatBubble(bot,to_others,COLOR_GREEN,35.0,10000); } else if(RandR == 26) //a tak dále.. { if(!strcmp(text,"majte sa",true)) { if(RandR == 27) { format(to_others, 39,"vojak: caw",name); SetPlayerChatBubble(bot,to_others,COLOR_GREEN,35.0,10000); } else if(RandR == 28) //a tak dále.. { if(!strcmp(text,"vojak kde si?",true)) { if(RandR == 29) { format(to_others, 39,"vojak: na vojenskej zakladne (area 51)",name); SetPlayerChatBubble(bot,to_others,COLOR_GREEN,35.0,10000); } else if(RandR == 30) //a tak dále.. { if(!strcmp(text,"vojak idem",true)) { if(RandR == 31) { format(to_others, 39,"vojak: ta chod",name); SetPlayerChatBubble(bot,to_others,COLOR_GREEN,35.0,10000); } else if(RandR == 32) //a tak dále.. { if(!strcmp(text,"vojak chces",true)) { if(RandR == 33) { format(to_others, 39,"vojak: chcem len sem musis prist",name); SetPlayerChatBubble(bot,to_others,COLOR_RED,35.0,10000); } else if(RandR == 34) //a tak dále.. { if(!strcmp(text,"vojak kam?",true)) { if(RandR == 35) { format(to_others, 39,"vojak: area 51",name); SetPlayerChatBubble(bot,to_others,COLOR_GREEN,35.0,10000); } else if(RandR == 36) //a tak dále.. { if(!strcmp(text,"vojak ides duel?",true)) { if(RandR == 37) { format(to_others, 39,"vojak: na ten tvoj duel sa mozem vidrbat",name); SetPlayerChatBubble(bot,to_others,COLOR_RED,35.0,10000); } else if(RandR == 38) //a tak dále.. { if(!strcmp(text,"vojak pod duel",true)) { if(RandR == 39) { format(to_others, 39,"vojak: id do pice",name); SetPlayerChatBubble(bot,to_others,COLOR_RED,35.0,10000); } else if(RandR == 40) //a tak dále.. { if(!strcmp(text,"vojak kolik ti je?",true)) { if(RandR == 41) { format(to_others, 39,"vojak: 19 kolko je tebe?",name); SetPlayerChatBubble(bot,to_others,COLOR_GREEN,35.0,10000); } else if(RandR == 42) //a tak dále.. { if(!strcmp(text,"vojak jak dopadla misia",true)) { if(RandR == 43) { format(to_others, 39,"vojak: dobre len mi zomrel partak :(",name); SetPlayerChatBubble(bot,to_others,COLOR_GREEN,35.0,10000); } else if(RandR == 44) //a tak dále.. { if(!strcmp(text,"vojak s kade si?",true)) { if(RandR == 45) { format(to_others, 39,"vojak: s tovjej riti :D",name); SetPlayerChatBubble(bot,to_others,COLOR_GREEN,35.0,10000); } else if(RandR == 46) //a tak dále.. { if(!strcmp(text,"vojak po za mnou",true)) { if(RandR == 47) { format(to_others, 39,"vojak: jebu te",name); SetPlayerChatBubble(bot,to_others,COLOR_RED,35.0,10000); } else if(RandR == 48) //a tak dále.. { if(!strcmp(text,"vojak co robis?",true)) { if(RandR == 49) { format(to_others, 39,"vojak: strazim areu 51",name); SetPlayerChatBubble(bot,to_others,COLOR_GREEN,35.0,10000); } else if(RandR == 50) //a tak dále.. { if(!strcmp(text,"vojak zautocim na teba",true)) { if(RandR == 51) { format(to_others, 39,"vojak: neutoc",name); SetPlayerChatBubble(bot,to_others,COLOR_RED,35.0,10000); } else if(RandR == 52) //a tak dále.. { if(!strcmp(text,"bozaj ma",true)) { if(RandR == 53) { format(to_others, 39,"vojak: NENADAVAJ",name); SetPlayerChatBubble(bot,to_others,COLOR_RED,35.0,10000); } else if(RandR == 54) //a tak dále.. { if(!strcmp(text,"vojak chod prec",true)) { if(RandR == 55) { format(to_others, 39,"vojak: ano pane uz idem",name); SetPlayerChatBubble(bot,to_others,COLOR_GREEN,35.0,10000); } else if(RandR == 56) //a tak dále.. { if(!strcmp(text,"kde najdem prikazy?",true)) { if(RandR == 57) { format(to_others, 39,"vojak: /commands ... lol xD",name); SetPlayerChatBubble(bot,to_others,COLOR_GREEN,35.0,10000); } else if(RandR == 58) //a tak dále.. { if(!strcmp(text,"...",true)) { if(RandR == 59) { format(to_others, 39,"vojak: dopovedz to",name); SetPlayerChatBubble(bot,to_others,COLOR_GREEN,35.0,10000); } else if(RandR == 60) //a tak dále.. return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) { // Do something here return 1; } return 0; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd[]) { return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public OnVehicleMod(playerid, vehicleid, componentid) { return 1; } public OnVehiclePaintjob(playerid, vehicleid, paintjobid) { return 1; } public OnVehicleRespray(playerid, vehicleid, color1, color2) { return 1; } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; } public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) { return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { return 1; } public OnRconLoginAttempt(ip[], password[], success) { return 1; } public OnPlayerUpdate(playerid) { return 1; } public OnPlayerStreamIn(playerid, forplayerid) { return 1; } public OnPlayerStreamOut(playerid, forplayerid) { return 1; } public OnVehicleStreamIn(vehicleid, forplayerid) { return 1; } public OnVehicleStreamOut(vehicleid, forplayerid) { return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { return 1; } public OnPlayerClickPlayer(playerid, clickedplayerid, source) { return 1; } public GetClosestPlayer(p1) { new x,Float:dis,Float:dis2,person; person = -1; dis = 99999.99; for (x=0;x { if(IsPlayerConnected(x)) //pokud je hráč připojený { if(x != p1) { dis2 = GetDistanceBetweenPlayers(x,p1); if(dis2 < dis && dis2 != -1.00) { dis = dis2; person = x; } } } } return person; } / nwm presne kde je ta chyba kebize nieco uvidite pls napiste Link to comment Share on other sites More sharing options...
-GSG-Nuke 1 Odesláno: 22. Září, 2010 Share Odesláno: 22. Září, 2010 tvl já to NPc nechápu!!! "lol" "lol" "lol" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now