Bonjour, j'ai un problème avec mon skript: il ne reconnais pas ma Fonction.
ma fonction:
function key(n: integer, max: integer, p: player):
if {_n} is "1":
set {_1} to random 4 char string from `A-Z0-9`
set {_2} to random 4 char string from `A-Z0-9`
set {_3} to random 4 char string from `A-Z0-9`
set {_key} to "%{_1}%-%{_2}%-%{_3}%"
if {_n} is "2":
set {_1} to random 12 char string from `A-Z0-9`
set {_key} to "%{_1}%"
if {_n} is "3":
set {_1} to random 4 char string from `A-Z0-9`
set {_2} to random 4 char string from `A-Z0-9`
set {_3} to random 4 char string from `A-Z0-9`
set {_4} to random 4 char string from `A-Z0-9`
set {_key} to "%{_1}%-%{_2}%-%{_3}%-%{_4}%"
set {whitelistkey.%{_key}%} to "%{_max}%"
add "%{_key}%" to {whitelistkey::*}
Mon code:
command /{@prefix_cmd}:create [<integer>] [<integer>]:
permission: {@permission_create}
trigger:
if arg 1 is 1 or 2 or 3:
if arg 2 is set:
key(1, arg 2, player)
Mon Erreur:
The function 'key' does not exist (test.sk, line 21: 'key(1, arg 2, player)')
Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.
Question
sam57730
10 réponses à cette question
Messages recommandés