Scripting Basics: Difference between revisions

From San Andreas Multiplayer
Jump to navigationJump to search
No edit summary
Tags: Manual revert Reverted
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Scripting Basics ==
<syntaxhighlight lang="php" line>
 
def quick_sort(arr):
{{PawnCode|code=
less = []
public OnPlayerConnect(playerid) {
pivot_list = []
    new string[128];
more = []
    format(string, sizeof(string), "Willkommen, Spieler %d!", playerid);
if len(arr) <= 1:
    SendClientMessage(playerid, 0xFFFFFFFF, string);
return arr
}
else:
}}
pass
</syntaxhighlight>

Latest revision as of 13:00, 3 November 2024

def quick_sort(arr):
	less = []
	pivot_list = []
	more = []
	if len(arr) <= 1:
		return arr
	else:
		pass