Forum

> > CS2D > Scripts > Getting boolean...shouldn't it be string or number
Forums overviewCS2D overview Scripts overviewLog in to reply

English Getting boolean...shouldn't it be string or number

3 replies
To the start Previous 1 Next To the start

old Getting boolean...shouldn't it be string or number

KaBooMa
User Off Offline

Quote
Alright so im trying to do something will either...player...or...entity...and it keeps giving me comparing a number to boolean...or string to boolean..and i was wondering how this is a boolean...From information ive collected...boolean is true...or false...atleast thats how its suppose to be...Here is my coding...

Spoiler >


Ignore the HasSpawnedNPCS = 1...im using it to make sure they only spawn once...ok so....as you see..this is randomly generating 30 npcs at random locations and a random rotation on a 50X50 map...but the msg...it is saying it a boolean...its saying that entity(Spawnx,Spawny,'type') is a boolean and it also says entity(Spawnx,Spawny,'name') is a boolean..and just about everything else..ive ran into this error before with the player(id,'something')...can anyone give me some information how this is boolean and how to fix it?
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview