13.12.2013, 08:15
Is there a way to read the Dialog info and save it in a variable ? Dialog Style is Listitem the problem here is that i cannot use the listitem id i need the info from the listitem itself (string)
CallLocalFunction("OnPlayerTakeDamage", "ddf", playerid, targetid, damage);
loadsomething(a, b, name[], value[])
{
//code
}
INI_ParseFile("m.ini", "loadsomething", .bExtra = true, .extra = a);
How can you with INI_ParseFile pass on both a variable a and a variable b?
|
Arrays
Using a 3-dimensional arrays, as I have heard, are heavy when it comes to taking up space. How much, I do not know but I've heard that. Is there anything similar to 3-dimensional arrays that wouldn't take up as much space? Might be a stupid question, but just asking. ^^ |
i am using https://sampforum.blast.hk/showthread.php?tid=446286 but when i try make the object work and do things, the object moves slowly, a bit laggy. idk what happened. Can u help me?
|
How do I set that everyone would run/walk in the style where when you sprint its quite slow and you move your arms back and forth instead of the default CJ run?
|
public function(&a, &b) {
// ...
}
main() {
new
var1 = 3,
var2 = 3
;
MyFunc(var1, var2);
printf("%d, %d", var1, var2); // 3, 5
}
MyFunc(value, & reference) {
value = 5;
reference = 5;
}
CMD:player_skin(playerid, params[])
{
new skinid;
if (sscanf(params, "i", skinid))
{
return SendClientMessage(playerid, 0xBE6C97FF, "Usage: /skin <skinid>");
}
if (skinid > 299)
{
SendClientMessage(playerid, 0x5A00FFFF, "u can't use");
return 0;
}
SetPlayerSkin(playerid, skinid);
return 1;
}