You seem to be unfamiliar with JavaScript's syntax. Please take a JavaScript tutorial before writing ModPE scripts: it will really help you create scripts. Some good tutorials can be found at W3schools or Codecademy.
This time, to redstonerofdeath.
Ok...
Im gonna rewrite your script the way it should Be!!
/*hi2*/
var king = 57; //a diamond block
var amount = 64; //a whole stack
var dataValue = 0; //just leave it
function newLevel() { //mistake 1: add this, clientMessage Cant Be Used Where u had it
clientMessage("Ready for Fun?");
}
function procCmd(cmd) { c = cmd.split(" ");
if(c[0]md == "king") {
clientMessage("The fun has began");
addItemInventory(king,amount,datavalue);
}
}
function leaveGame() {
print("See you later");
}
clientMessage(ready for fun);
function useItem(x, y, z, itemId, blockId, side)
{
}
function attackHook(attacker, victim)
{
}
function modTick()
{
}
function procCmd(command)
{
var cmd = command.split(" ");
if(cmd[0] == "king")
{
/give king
}
}
function newLevel()
{
clientMessage(the fun has started);
}
function leaveGame()
{
clientMessage(see you later);
}
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYou seem to be unfamiliar with JavaScript's syntax. Please take a JavaScript tutorial before writing ModPE scripts: it will really help you create scripts. Some good tutorials can be found at W3schools or Codecademy.
Ok...
Im gonna rewrite your script the way it should Be!!
/*hi2*/
var king = 57; //a diamond block
var amount = 64; //a whole stack
var dataValue = 0; //just leave it
function newLevel() { //mistake 1: add this, clientMessage Cant Be Used Where u had it
clientMessage("Ready for Fun?");
}
function procCmd(cmd) {
c = cmd.split(" ");
if(c[0]
md== "king") {clientMessage("The fun has began");
addItemInventory(king,amount,datavalue);
}
}
function leaveGame() {
print("See you later");
}
Follow @Darth377Apps
Please check out my Twitter account!

I have been working on a few games!
Give me ALL THE INTERNETS!