What would it be like if SA-MP used ... not PAWN!
#1

PAWN is a great language, easy to understand (considering you're somewhat into programming) and easy to implement. But what would it be like if SA-MP used a different kind of language? Aren't there better, higher-level or faster languages that could do the job?

Sometimes I wonder that if SA-MP required a more difficult language to learn (maybe, C#/+/++ or Java?) then PAWN there would be less horrible scripts because people who weren't "involved" in programming woulden't be bothered learning it in the first place.

That's not what this topic is about though. I'd really like to see what code would look like if SA-MP used ... For JAVA, I assume it could be something like this (and you're free to state your opinion on the language of your choice)!

SA-MP in JAVA? :
PHP Code:

public int OnPlayerConnect(Player player) {
    
Color c = new Color(255255255);
    
player.sendMessage(c"Hello there!");
    return 
1;
}
public 
int OnPlayerText(Player playerString text) {
    
int pID player.getID();
    
int pName player.getName();
    
text pName " [" pID "]: "text;
    
Color c = new Color("red");
    
server.sendMessage(ctext);
    return 
0;
}
public 
int OnPlayerCommandText(Player playerString cmdtext) {
    if(
cmdtext.equals("mycommand")) {
        
// Player typed "/mycommand"
        
return 1;
    }
    return 
0;
}
// Or maybe create a samp object somewhere?
SObject s = new SObject(1532);
s.setCoords(0.00.00.0);
s.setRotation(180.0);
s.setWorld(5);
s.setVisible(true); 
Any more ideas?
Reply


Messages In This Thread
What would it be like if SA-MP used ... not PAWN! - by Sinner - 11.08.2012, 09:45
Re: What would it be like if SA-MP used ... not PAWN! - by playbox12 - 11.08.2012, 10:18
Re: What would it be like if SA-MP used ... not PAWN! - by Mauzen - 11.08.2012, 10:47
Re: What would it be like if SA-MP used ... not PAWN! - by [MM]RoXoR[FS] - 11.08.2012, 11:16
Re: What would it be like if SA-MP used ... not PAWN! - by Sniper Kitty - 11.08.2012, 11:24
Re: What would it be like if SA-MP used ... not PAWN! - by Jessyy - 11.08.2012, 11:50
Re: What would it be like if SA-MP used ... not PAWN! - by [MM]RoXoR[FS] - 11.08.2012, 13:01
Re: What would it be like if SA-MP used ... not PAWN! - by iggy1 - 11.08.2012, 17:04
Re: What would it be like if SA-MP used ... not PAWN! - by Vince - 11.08.2012, 17:09
Re: What would it be like if SA-MP used ... not PAWN! - by Kingunit - 12.08.2012, 16:27
Re: What would it be like if SA-MP used ... not PAWN! - by Dan.. - 12.08.2012, 18:01
Re: What would it be like if SA-MP used ... not PAWN! - by Y_Less - 12.08.2012, 19:32
Re: What would it be like if SA-MP used ... not PAWN! - by Dan.. - 12.08.2012, 20:22
Re: What would it be like if SA-MP used ... not PAWN! - by KingHual - 12.08.2012, 20:27
Re: What would it be like if SA-MP used ... not PAWN! - by Sniper Kitty - 13.08.2012, 06:10
Re: What would it be like if SA-MP used ... not PAWN! - by Sinner - 13.08.2012, 08:15
Re: What would it be like if SA-MP used ... not PAWN! - by Mandrakke - 20.08.2012, 14:08
Re: What would it be like if SA-MP used ... not PAWN! - by jameskmonger - 08.09.2012, 02:58
Re: What would it be like if SA-MP used ... not PAWN! - by Mauzen - 08.09.2012, 19:00
Re: What would it be like if SA-MP used ... not PAWN! - by jameskmonger - 08.09.2012, 20:06
Re: What would it be like if SA-MP used ... not PAWN! - by Amit_B - 09.09.2012, 05:27
Re: What would it be like if SA-MP used ... not PAWN! - by Mauzen - 09.09.2012, 11:43
Re: What would it be like if SA-MP used ... not PAWN! - by jameskmonger - 09.09.2012, 12:42
Re: What would it be like if SA-MP used ... not PAWN! - by Craig3412 - 26.06.2013, 01:40
Re: What would it be like if SA-MP used ... not PAWN! - by Y_Less - 29.06.2013, 09:27
Re: What would it be like if SA-MP used ... not PAWN! - by Sasino97 - 05.07.2013, 14:53

Forum Jump:


Users browsing this thread: 1 Guest(s)