Raised This Month: $ Target: $400
 0% 

Using file to define positions


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 05-21-2013 , 14:49   AW: Using file to define positions
Reply With Quote #1

I don't want anyone to code me anything, meanwhile I got the page as Screenshot from Smatify.
__________________
Kia is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 05-22-2013 , 11:08   Re: Using file to define positions
Reply With Quote #2

I tried something now, but it always gives me "Tag mismatch", and I don't know what I'm doing wrong

PHP Code:
new iOrigin[3][8]
new 
Float:origin[3]
new 
filedata[32],txtlen
new maxlines file_size(file,1)
new 
line random_num(1,maxlines)
        
read_file(file,line,filedata,31,txtlen)
parse(filedata,iOrigin[0],7,iOrigin[1],7,iOrigin[2],7)

origin[0] = str_to_num(iOrigin[0]) // Tag Mismatch
origin[1] = str_to_num(iOrigin[1]) //
origin[2] = str_to_num(iOrigin[2])  //
        
new Float:Vec[3]
IVecFVec(originVec// 
__________________

Last edited by Kia; 05-22-2013 at 11:09.
Kia is offline
bael
Junior Member
Join Date: Oct 2012
Old 05-22-2013 , 12:55   Re: Using file to define positions
Reply With Quote #3

str_to_num - Returns a string converted to a number
str_to_float - Converts a string to a float
bael is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 05-22-2013 , 13:12   Re: Using file to define positions
Reply With Quote #4

Sorry.

__________________
Kia is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 05-22-2013 , 14:04   Re: Using file to define positions
Reply With Quote #5

Everything works fine now, thanks to everyone who helped, I went full retard again.
__________________

Last edited by Kia; 05-22-2013 at 14:42.
Kia is offline
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 -4. The time now is 16:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode