25.08.2012, 16:58
Quote:
i still don't know what do to do what do you mean by no coding and stuff ughh so frustrated
|
So I'll just explain simple statements to you.
When creating a statement, you use the name and two parentheses "()" after that you use two curly brackets which the coding for that statement goes in. For example;
pawn Код:
cmd:thisisthename(these are the parentheses){
//Within here is where your coding goes for this statement.
}
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
}
As you have to add which key you will be using, you do this;
pawn Код:
if(newkeys == KEY_SECONDARY_ATTACK)
{
//Within here is where your enter code is going.
}
pawn Код:
cmd:thisisthename(these are the parentheses){
//take away what's on top and the bracket below. and where i am typing will be your /enter code
}
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){
if(newkeys == KEY_SECONDARY_ATTACK)
{
//ALL YOUR ENTER CODE WILL GO IN HERE.
// Which means when you press ENTER you will enter a building.
} // this bracket is closing the if(){} statemnet
} // this bracket is closing the public OnPlayerKeyStateChange