Author Topic: Help with script? :)  (Read 725 times)

yea i looked at rkynick's basic torque script tutorial, i got most of it except for the dice part.Didn't work :\ lol i tried to look at other scipts and tried to guess on how to fix it and none of my ways worked.If somebody could tell whats wrong with it?Once i understand this one ill understand alot more cause right now i even tried a simple

Code: [Select]
function servercmdhi(%client)
{
   messageClient(%client, "hi");
}

and it still didn't work :P

i'm just trying to learn and if anybody could just tell me whats wrong with it?

Code: [Select]
function servercmddice(%client)
{
   $text1 = "You rolled a";
   %num = getrandom(1,6);
   messageClient($text1 SPC %num);
}

i also tried

Code: [Select]
function servercmddice(%client)
{
   %num = getrandom(1,6);
   messageClient(%client, "You Rolled A" SPC %num);
}
yes when i started my server i checked it and i saved as .cs
« Last Edit: April 07, 2008, 10:10:52 PM by DarkStar »

Code: [Select]
function servercmdhi(%client)
{
   messageClient(%client, "", "hi");
}
Code: [Select]
function servercmddice(%client)
{
   %text1 = "You rolled a";
   %num = getrandom(1,6);
   messageClient(%client, "", %text1 SPC %num);
}

omg that was it!? lol.
Thanks  :cookieMonster: