View Single Post
  #2  
Old 06-21-2003, 08:57 PM
used_pawn
Sarnak
 
Join Date: Apr 2003
Posts: 53
Default

bah, i hadnt updated my cvs lately, try putting it here

../zone/parser.cpp : line 1497

Code:
	else if (!strcmp(varname,"chr")) {
		char temp[4];
		memset(temp, 0x0, 4);
		temp[0] = atoi(varparms);
		Replace(origstring,format,temp);
	}
//used_pawn
	else if (!strcmp(varname,"random")) {
		char temp[10];
		Replace(origstring,format,itoa(rand()%varparms[0],temp,10));
	}
//used_pawn
	else if (!strcmp(varname,"asc")) {
		char temp[10];
		Replace(origstring,format,itoa(varparms[0],temp,10));
	}
Sorry, Im not very good at my postings.
Reply With Quote