What is this
#1

hey guys so I got into scripting pawn and I was just reading and playing with functions so heres what I did

Код:
//THis is a new test game mode by me
//* welcome to this test

#include <a_samp>

Main()
}
SetplayerDeath("YOu are killed");
SetplayerDeath("Cluck Cluck your dead");
SetplayerDeath("Cluck Cluck your dead");
SetplayerDeath("Cluck Cluck your dead");
SetplayerDeath("Cluck Cluck your dead");
SetplayerDeath("Cluck Cluck your dead");
SetplayerDeath("Cluck Cluck your dead");
SetplayerDeath("Cluck Cluck your dead");
SetplayerDeath("Cluck Cluck your dead");
SetplayerDeath("Cluck Cluck your dead");
SetplayerDeath("Cluck Cluck your dead");
SetplayerDeath("Cluck Cluck your dead");
return 1;

//* THis is a practice script

Print("Welcome to CoreX Dm Server";
return 1;

// getting in to pawno

SetGameModeText("Welcome to the server")
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785;)//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
return 1;

//Player position
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
return 1;
So I was wondering what is this I just wrote?
Reply
#2

Quote:
Originally Posted by ViciousX
Посмотреть сообщение
hey guys so I got into scripting pawn and I was just reading and playing with functions so heres what I did

Код:
//THis is a new test game mode by me
//* welcome to this test

#include <a_samp>

Main()
}
SetplayerDeath("YOu are killed");
SetplayerDeath("Cluck Cluck your dead");
SetplayerDeath("Cluck Cluck your dead");
SetplayerDeath("Cluck Cluck your dead");
SetplayerDeath("Cluck Cluck your dead");
SetplayerDeath("Cluck Cluck your dead");
SetplayerDeath("Cluck Cluck your dead");
SetplayerDeath("Cluck Cluck your dead");
SetplayerDeath("Cluck Cluck your dead");
SetplayerDeath("Cluck Cluck your dead");
SetplayerDeath("Cluck Cluck your dead");
SetplayerDeath("Cluck Cluck your dead");
return 1;

//* THis is a practice script

Print("Welcome to CoreX Dm Server";
return 1;

// getting in to pawno

SetGameModeText("Welcome to the server")
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785;)//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
AddPlayerClass(0,1845,5844,-8569,8456,4785);//guyspawn
return 1;

//Player position
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
SetplayerPosition(1458,2598,5847,+9654,4578,2314);
return 1;
So I was wondering what is this I just wrote?
You can compile it instead of posting a new topic
Therefor if you click Compile, You can know what is error.
Reply
#3

Yeah Ik that but I want the thoughts from you guys to see what I scripted.
Reply
#4

Quote:
Originally Posted by ViciousX
Посмотреть сообщение
Yeah Ik that but I want the thoughts from you guys to see what I scripted.
We dont need to see your script bro, This Categories on forum named "Scripting Help" is only to ask for question not to show your script
Reply
#5

ok and I got some errors but I deleted the script and now reading on WIKI.
Reply
#6

You made plenty mistakes, such as
pawn Код:
SetplayerPosition(1458,2598,5847,+9654,4578,2314);

You forgot to add playerid into it. You are basicaly making SetPlayerPosition to no one. It wont work and it wont compile simple as that since you are missing the actual playerid.

Also only 1 SetPlayerPos is neded. SetPlayerPosition? You need to use SetPlayerPos(playerid,x,y,z)

Ex:
pawn Код:
OnPlayerSpawn(playerid)
{
         SetPlayerPos(playerid,1458,2598,5847,+9654,4578,2314);
         return 1;
}
Read Wiki and some stuff, it will help you out.
Reply
#7

Quote:
Originally Posted by TwinkiDaBoss
Посмотреть сообщение
It wont work and it wont compile simple as that since you are missing the actual playerid.
The function is expecting an integer as argument, no matter if you actually pass it directly or using "playerid" parameter which holds the value. But yes - it won't work since there's no way for a player to have 1458 as ID, the functions' name are incorrect and were placed out of callbacks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)