Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-15-2003, 01:43 AM
Benm00t Benm00t is offline
I made a tree!
Benm00t's Avatar
Join Date: Jul 2003
Location: The Intarwebbernetwork!
Posts: 987
Benm00t is on a distinguished road
Setting variables.

When i try to set a message code as a variable, i always seem to get an error message. Say if i wanted to:

this.myvar=#p(0);

I would get Error: Expected format var, var[i], obj[i].attr, function(a), function(a,b).

How do i save message codes to variables sucessfully?

Thanx!
Reply With Quote
  #2  
Old 08-15-2003, 01:45 AM
TribulationStaff TribulationStaff is offline
Registered User
Join Date: Jul 2003
Location: Pennsylvania
Posts: 368
TribulationStaff is on a distinguished road
Send a message via AIM to TribulationStaff
as far as I know all #variables are strings, you would need to either setstring or to use strtofloat
__________________


Help me keep scripting
Reply With Quote
  #3  
Old 08-15-2003, 01:49 AM
Riot-Starter Riot-Starter is offline
Registered User
Join Date: Aug 2001
Location: Central Florida, USA
Posts: 79
Riot-Starter is on a distinguished road
Send a message via AIM to Riot-Starter
Quote:
Originally posted by TribulationStaff
as far as I know all #variables are strings, you would need to either setstring or to use strtofloat
Yep.

Inorder to set #p(0) to a variable you must use strtofloat().
Reply With Quote
  #4  
Old 08-15-2003, 01:53 AM
Benm00t Benm00t is offline
I made a tree!
Benm00t's Avatar
Join Date: Jul 2003
Location: The Intarwebbernetwork!
Posts: 987
Benm00t is on a distinguished road
ah, works. Thanks guys :-D
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:15 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.