Hi Leutz,
könnt mir jemand vllt erklären was GetWeaponName(weaponid, weaponName, 64); das rote heist? im englischen wiki steht folgendes:
Parameters:
(weaponid, const weapon[], len)
weaponid The WeaponID you want to know the name of.
const name[] The variable to save the name in, passed by reference.
len The number of cells/length of the variable.
This function returns the weapon name.
new weaponid = 38;
public OnPlayerConnect(playerid)
{
new weaponName[65], string[95];
GetWeaponName(weaponid, weaponName, 64);
GivePlayerWeapon(playerid, weaponid, 100);
format(string, sizeof(string), "You received a %s", weaponName);
SendClientMessageToPlayer(playerid, 0xFFFF00AA, string);
return 1;
}
und im deutschen nur das:
GetWeaponName(weaponid, const weapon[], len);
Funktion: Schreibt in weapon den Namen der Waffe weaponid.
was heist das Rote? das "len"?!?!