Maybe it's the most convenient syntax for pawn
#1

During my work in SA:MP I have developed I think a lot of useful things. And this is one of them.
You know, for example you can write this:

PHP Code:
public OnPlayerConnect(playerid)
{
    
Player[playerid][Player_Connected] = true;
    
Player[playerid][Player_Money] = 1000;
    
SetPlayerPos(playerid0.00.00.0);
    

But I suggest you write this:

PHP Code:
public OnPlayerConnect(player)
{
    
Player.Connected true;
    
Player.Money 1000;
    
player.SetPos(0.00.00.0);

I know, it looks strange. But can you imagine how convenient it is? And fortunately it's possible. I think it will save your time because you will write less. I should add that this is not all. If you like this trend, I'll tell all my ideas about it and show how they can be implemented.

Thank you.
Reply


Messages In This Thread
Maybe it's the most convenient syntax for pawn - by a3om - 14.02.2014, 19:49
Re: Maybe it's the most convenient syntax for pawn - by Ada32 - 14.02.2014, 19:54
Re: Maybe it's the most convenient syntax for pawn - by a3om - 14.02.2014, 20:00
Re: Maybe it's the most convenient syntax for pawn - by AlonzoTorres - 14.02.2014, 20:02
Re: Maybe it's the most convenient syntax for pawn - by a3om - 14.02.2014, 20:06
Re: Maybe it's the most convenient syntax for pawn - by AlonzoTorres - 14.02.2014, 20:08
Re: Maybe it's the most convenient syntax for pawn - by Ada32 - 14.02.2014, 20:16
[No subject] - by a3om - 14.02.2014, 20:25
Re: Maybe it's the most convenient syntax for pawn - by Ada32 - 14.02.2014, 21:15
[No subject] - by a3om - 14.02.2014, 21:29

Forum Jump:


Users browsing this thread: 1 Guest(s)