26.08.2015, 16:08
(
Последний раз редактировалось Logofero; 26.08.2015 в 17:25.
Причина: Add PS
)
I like that it is offered as an alternative Pawn, but there is already a plugin allows you to work with Lua in the sа-mp.
Good job.
PS: Need a wiki will be even more popular
Add example:
I agree it is nice (LUA):
what is so (PAWNO):
And the result is the same in chat:
Good job.
PS: Need a wiki will be even more popular
Add example:
I agree it is nice (LUA):
PHP код:
-- Declaration new function
function sendMsgToPlayer(playerid, color, form, ...)
sendClientMessage(playerid, color, string.format(form, ...))
end
-- Test formatted messages
sendMsgToPlayer(playerid, -1, "integer %d text '%s' float %.1f", 1, "text and smile :)", 100.0)
PHP код:
// Sending a formatted message..
new msg[256];
format(msg, sizeof(msg), "integer %d text '%s' float %.1f", 1, "text and smile :)", 100.0);
SendClientMessage(playerid, -1, msg);
Код:
integer 1 text 'text and smile :)' float 100.0