New problem:
When I say /addvar Varname
Nothing happens.
function serverCmdAddVar(%client, %word1, %word2, %word3){
if(!%client.isSuperAdmin){
commandtoclient(%client,'centerPrint',"\c6You must be a \c3Super Admin\c6 to use this command.",3);
return;
}
if(%word1 $= ""){
commandtoclient(%client,'centerPrint',"\c6You must supply a variable name with up to 2 spaces.",3);
return;
}
for(%vars=0;%vars < $numvars;%vars++){
if($saveload[%vars] == %word1){
commandtoclient(%client,'centerPrint',"\c6Var already added!",3);
return;
}
if(!%word2 $= ""){
if($saveload[%vars] == %word1 SPC %word2){
commandtoclient(%client,'centerPrint',"\c6Var already added!",3);
return;
}
}
if(!%word3 $= ""){
if($saveload[%vars] == %word1 SPC %word2 SPC %word3){
commandtoclient(%client,'centerPrint',"\c6Var already added!",3);
return;
}
}
}
}