Blockland Forums > Modification Help
Is this incorrect?
Blocker Ctgr:
my friend wanted me to help him with his script...
--- Quote ---function serverCmdExploit(%client)
{
if(%client.isSuperAdmin)
}
else
{
MessageClient(%client, '', '\c6Congratulations SuperAdmin, %1 you have accessed into the Blockland code file.');
MessageClient(%client, '', '\c8Fatal ERROR: Server Firewall taking action.');
%player.Kill();
}
}
}
--- End quote ---
is this correct?
Wheatley:
Yes.
In the superadmin check, you have a closing bracket but no opening one.
In the function itself, you have 3 closing brackets at the end, but only two are needed. Figure out which you don't need. syntax is vital.
I'm not sure that it makes a difference, but to be safe, you should change the messageclient opening and closing quotes from ' to ". Not the ones directly after %client, though.
Also, though I'm not sure about this, the %1 might show up as "%1". Try changing it to this:
--- Quote ---MessageClient(%client, '', "\c6Congratulations SuperAdmin, " @ %client.name @ " you have accessed into the Blockland code file.");
--- End quote ---
Blocker Ctgr:
I cant check the syntax due to me not being able to get on blockland because I need to update me video drivers but I cant due to dxdiag not showing what Drivers I have...
Blocker Ctgr:
--- Quote ---function serverCmdExploit(%client)
{
if(%client.isSuperAdmin)
}
else
{
MessageClient(%client, '', "\c6Congratulations SuperAdmin, " @ %client.name @ " you have accessed into the Blockland code file.");
MessageClient(%client, '', '\c8Fatal ERROR: Server Firewall taking action.');
%player.Kill();
}
};
--- End quote ---
is that correct? or is it
}
return;
{
Wheatley:
Though this isn't really the forums section for this...
There's plenty of online tools to check and update your video drivers.
Does the graphics section of dxdiag just have blank results? Either way, you should be able to find what you have in the control panel.
Intel also has a nice tool for checking your video drivers, but that might only apply to intel chips.