![]() |
|
Help is needed - Printable Version +- Las Venturas Playground (https://forum.sa-mp.nl) +-- Forum: Miscellaneous (https://forum.sa-mp.nl/forum-4.html) +--- Forum: Gaming (https://forum.sa-mp.nl/forum-27.html) +--- Thread: Help is needed (/thread-16466.html) |
Help is needed - Matthias - 02-22-2009 Hi, I have a weird problem with my IRC script. The join & leave message just don't show. I asked a lot of scripters and in #sa-mp.scripting. But they couldn't help me. I'm wondering if someone could check this for me. http://pastebin.com/f2b51e82a (the script doesn't give any errors / warnings when compiling, the messages just don't show). Thanks
Re: Help is needed - Mark - 02-22-2009 This is taken from other echo script, but might aswell do the trick: Code: public OnPlayerConnect(playerid)Re: Help is needed - Fireburn - 02-23-2009 Do other messages show? Like OnPlayerDeath and OnPlayerText? Re: Help is needed - Jay - 02-23-2009 There is nothing wrong with the OnPlayer(Dis)Connect callbacks in that code. It could be the ircSay function. Try adding debug statements. Re: Help is needed - Matthias - 02-23-2009 @ estroeFireburn: Jup @ Jay: Could you tell me how to do that? Re: Help is needed - wootcake - 02-25-2009 Untested: http://pastebin.com/m90f1501 EDIT: Debugging a script is simple, just add printf statements to several lines .. examply; printf("GetPlayerName = %s", PlayerName); under the GetPlayerName function, to check if its receiving the name. printf("Ingame join message received"); under your message to tell people ingame that a player joined printf("irc string formatted"); under the format(....) of you irctext printf("irc string sent"); under your IrcSay(); Every printf statement will be put into your server_log.txt If any printf is missing, you can find the error easily. Re: Help is needed - Matthias - 02-25-2009 Sorry for the estroe - fireburn thingy, I was at ma PSP and I didn't really look who was talking to me .Sorry for posting too late, and thanks woot and everybody else, but it has sorta sorted itsself :s. Somehow it just got fixed, no idea how. |