wat

Forum Archive - from http://theuniversal.net
Locked
User avatar
morbydvisns
Posts: 1889
Joined: Sun Jan 30, 2005 12:51 am

wat

Post by morbydvisns »

Image
Last edited by morbydvisns on Sun Jun 17, 2012 5:57 pm, edited 2 times in total.
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

var being set elsehwere as well maybe?
User avatar
morbydvisns
Posts: 1889
Joined: Sun Jan 30, 2005 12:51 am

Post by morbydvisns »

Nah, I typed that fresh var just minutes before testing.. it's the only instance of it.
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

u using the 62.2 server?
User avatar
morbydvisns
Posts: 1889
Joined: Sun Jan 30, 2005 12:51 am

Post by morbydvisns »

yessir.
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

mmm
User avatar
morbydvisns
Posts: 1889
Joined: Sun Jan 30, 2005 12:51 am

Post by morbydvisns »

Code: Select all

Event("&Command","num")
{

     $wat = sysPlayerInventory(“BigBoots”)
$nucCount = sysPlayerInventory("BigBoots")


*say %player% has $wat BigBoots
*say %player% has $nucCount BigBoots
}
$wat says 0 and $nucCount says proper amount.

Edit - i retyped the first line and it started magically working properly. funky.

so i copy and pasted that one to my building script above and it went ok now. I've re-typed that part a half a dozen times yesterday and this is the first to get positive results. Especially odd considering all i did was grant and ungrant items to get the changes, consistently.

Ah well.. I'll keep an eye out for this for sure. First I've seen proper syntax not work right but uno how that goes =)
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

In the snippet above, i notice theres two different types of quotation marks in use.
Might be an issue if your text editor is outputting odd characters in utf-8 format (or other) rather than straight ASCII.
User avatar
morbydvisns
Posts: 1889
Joined: Sun Jan 30, 2005 12:51 am

Post by morbydvisns »

I'll check into that.... it's so small on my screen i couldnt see that until i zoomed in a bit. I did notice a diff. between yours in the farm example and mine a cpl weeks ago but did a copypasta test then and they both worked fine. Ah well. I'll add that to myh list of unexplainables.. Just below random *say lines out my script popping up once in a great while and America electing a Kenya born president.
Locked