08.12.2012, 06:15
Hi.
I was wondering for a few while,almost everyone on sa-mp forums script,we script pawn me too,that is a language which is C-like.
Alright,scripting itself is hard, and pawn is a language. I'll explain it this way.
Imagine the SetPlayerHealth(playerid,amount); function. It has a meaning on its own language (pawn). Well,when you use that function,it refers to the GTA-SA script (done by rockstar games) changing the actor's health variable,am I right?
So,the computer knows what to do at SetPlayerHealth. And the script of rockstar games aswell. Ex: Rockstar games is SetActorHealth (just made it up) So if you use SetPlayerHealth,it will return to SetActor health.
So someone scripted GTA-SA. Alright,then how did they script GTA-SA script? There are functions,how does the PC understand what function you used and what will it do. Does C++ understand?Then how does the PC understand C++? The electronic pulses on the motherboard? Well,how does those,turn to a god damn SetPlayerHealth function,got me? I wish you did.
If you didn't understand I'm trying to ask you,
How does the PC understand the script language? There must be another function or something different to tell the pc what to do at that function and how will pc understand that function is that function.
It is like a paradox,isnt it?
I was wondering for a few while,almost everyone on sa-mp forums script,we script pawn me too,that is a language which is C-like.
Alright,scripting itself is hard, and pawn is a language. I'll explain it this way.
Imagine the SetPlayerHealth(playerid,amount); function. It has a meaning on its own language (pawn). Well,when you use that function,it refers to the GTA-SA script (done by rockstar games) changing the actor's health variable,am I right?
So,the computer knows what to do at SetPlayerHealth. And the script of rockstar games aswell. Ex: Rockstar games is SetActorHealth (just made it up) So if you use SetPlayerHealth,it will return to SetActor health.
So someone scripted GTA-SA. Alright,then how did they script GTA-SA script? There are functions,how does the PC understand what function you used and what will it do. Does C++ understand?Then how does the PC understand C++? The electronic pulses on the motherboard? Well,how does those,turn to a god damn SetPlayerHealth function,got me? I wish you did.
If you didn't understand I'm trying to ask you,
How does the PC understand the script language? There must be another function or something different to tell the pc what to do at that function and how will pc understand that function is that function.
It is like a paradox,isnt it?