Posts: 162
Threads: 16
Joined: Jan 2014
07.02.2014, 14:22
(
Последний раз редактировалось FrakyX; 07.02.2014 в 14:58.
)
Hello there!
I am new in scripting and programming. I just started learning to script from the last 2 days. I really did not get any basics from that but I just tried to make one. Please don't laugh cuz I am a beginner. It is just a simple command to see the server's details, for now I just put my server's details and I did not test it but I want to show you all correct my script if there is any error.
Thanks to wiki.sa-mp.com and some other TuTs!
PasteBin Link
http://pastebin.com/SqguKJG0
Thanks
FrakyX
Posts: 148
Threads: 16
Joined: Jan 2014
Reputation:
0
This looks good for a first job. Actually learned something from it, nice job.
Posts: 162
Threads: 16
Joined: Jan 2014
Quote:
Originally Posted by kooltuO
This looks good for a first job. Actually learned something from it, nice job.
|
Thanks! For the the first appreciation!!
Posts: 1,498
Threads: 101
Joined: Feb 2013
Reputation:
0
very good work keep it up you will learn something everyday.
Posts: 162
Threads: 16
Joined: Jan 2014
Quote:
Originally Posted by Yves
very good work keep it up you will learn something everyday.
|
Yep! Thanks buddy!
Posts: 162
Threads: 16
Joined: Jan 2014
Posts: 443
Threads: 21
Joined: Jul 2013
Its great that you've tried.You'll surely learn something that'll help you in your daily life.
Posts: 162
Threads: 16
Joined: Jan 2014
Quote:
Originally Posted by Konstantinos
Since you include ZCMD, it'd be good to actually use it instead of strcmp.
You don't need strcat and an array to store the text because it's small so it can be done directly in ShowPlayerDialog.
pawn Код:
#define FILTERSCRIPT#include <a_samp>#include <zcmd>#define DIALOG_HELP 100CMD:server (playerid, params []){ ShowPlayerDialog (playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "Server", "[X] San Fierro COps N Robbers.\nServer Made by FrakyX.\nServer Forums www.xcnr.freeforums.org.", "Ok", "Cancel"); return 1; }
Last, nice way to advertise your forum.. you could use some other name (that doesn't direct to a server's forum).
|
I didnt meant to advertise my forum/server since that was an old server I closed that and I dont care if anyone joins it or not and I guess zcmd is much easier thanks anyway!