Start Scripting
#1

Hello !
i want to start scripting !
What else should I know for start scripting and make a server?
Reply
#2

https://sampwiki.blast.hk/wiki/Scripting_Basics
Reply
#3

Learn the basics, watch tutorials, useful videos on *******! This may help you!
Good luck.
Reply
#4

Quote:
Originally Posted by iFiras
Посмотреть сообщение
Learn the basics, watch tutorials, useful videos on *******! This may help you!
Good luck.
Quote:
Originally Posted by Namer
Посмотреть сообщение
i read it but it don't help me very well!
when i look for game mod ! i knock down
for example

enum hInfo
{
hSQLID,
Float:hEntrancex,
Float:hEntrancey,
______________________ what's the hInfo or hEntrancey ... etc..

more example :

forward UnLockCar(carid);
forward Fillup(i);
forward SyncTime();
forward SyncUp();
_____________________ what do forward do for example


new Float: lwx, Float:lwy, Float:lwz;
GetPlayerPos(playerid, lwx, lwy, lwz);
if((lwz > 530.0) || PlayerToPoint(1000.0, playerid, -1041.9,-1868.4,79.1))

what do new float do! or what do lwx do

__________________________________________________ _____________________

i don't know about this ..... in wiki we can know somthing
__________
Reply
#5

To understand what you just posted, i suggest you try to make
a little deathmatch game for yourself so you learn why some functions are not in the wiki.
Alot functions you showed in your last post are self made.
Making functions yourself is a step to far to learn yet.
Reply
#6

Quote:
Originally Posted by AIped
Посмотреть сообщение
To understand what you just posted, i suggest you try to make
a little deathmatch game for yourself so you learn why some functions are not in the wiki.
Alot functions you showed in your last post are self made.
Making functions yourself is a step to far to learn yet.
yes ! i thought all of the scripting is c++ but now i know we should now php for functions and array to make a script

is it true? i should know php ?
Reply
#7

not realy...
Reply
#8

Quote:
Originally Posted by AIped
Посмотреть сообщение
not realy...
so , what should i know?
if i want to make a game mode i should know about functions or ...
really i can't know anything by try
Reply
#9

yes you should know about functions you see in the wiki.
and yes you should just start to try something.
why dont you just open pawno click on the left corner (new file)
then you already see alot of codes..those are callbacks.
check out any callback..type the name of the callback in the sa-mp wiki and read what it does.
If you understand callbacks, you can try what happens if you put a function in it.
Reply
#10

Quote:
Originally Posted by AIped
Посмотреть сообщение
yes you should know about functions you see in the wiki.
and yes you should just start to try something.
why dont you just open pawno click on the left corner (new file)
then you already see alot of codes..those are callbacks.
check out any callback..type the name of the callback in the sa-mp wiki and read what it does.
If you understand callbacks, you can try what happens if you put a function in it.
yes for example now i read about what's public !
calback's are very much and i should read and try to make
thank you man ! you help me so much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)