Jump to content

Silly Mistake


MetaGamer

Recommended Posts

Posted

I made a silly mistake on this code. Can anyone figure it out?

  
local newZ = getElementData ( attacker, "Zombie kills" ) 
outputChatBox( "Total Zombies killed: " .. (string)  newZ) 
  

The error is:

  
[2011-10-30 01:41:46] SCRIPT ERROR: zombies\zombie_server.lua:339: ')' expected near 'newZ' 
[2011-10-30 01:41:46] WARNING: Loading script failed: zombies\zombie_server.lua:339: ')' expected near 'newZ' 
  

Thanks in advance!

rszglobelinesspeedtest.png
Posted
  
    local newZ = getElementData ( attacker, "Zombie kills" ) 
    outputChatBox( "Total Zombies killed: " .. (string).. "  newZ) 
  
  
 

Maybe This

Posted

what is that (string) there?

local newZ = getElementData ( attacker, "Zombie kills" ) 
outputChatBox( "Total Zombies killed: " .. newZ) 

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...