![]() |
Small question
when generating random numbers
i'm using this code PHP Code:
server.random=2.056879 any idea on how i can make it so it only generated whole numbers? |
Re: Re: Small question
Quote:
now i have to go read the commands :[ |
Quote:
but i don't know how to properly do it like setstring server.random,int(random(1,5)); i tryed like that and setstring server.random,#v int(random(1,5)); and setstring server.random,i#v,int(random(1,5)); :[ |
yay
setstring server.roll1,#v(int(random(1,6))); |
:)
now i am at my next problem the point was to send the data to another npc which i did now im doing a check in the other so i want to do like if (timeout) { a = #s(server.1); b = #s(server.2); c = #s(server.3); timeout = 1; } if (timeout) { if (a==b) { myaction; } like that but when i try to do a = #s(server.1); i get the error Error: Expected format var, var[i], obj[i].attr, function(a), function(a,b) :( |
yeah i want to compare the strings to eachother
like if (string 1 = string 2) { action; } if (string 2 = string 3) { action; } if (string 3 = string 1) { action; } :\ |
i tryed doing that and i could not get it :{
|
lol...n00b.
:spam: :spam: :spam: |
Quote:
crawl back in your hole. |
Quote:
|
Quote:
|
All times are GMT +2. The time now is 09:47 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.