Thread: % done
View Single Post
  #16  
Old 10-14-2001, 02:47 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Enigma_GP6


Well You need to fix this, like so:

if(playerenters){
setstring percentdone,0;
if(playertouchsme&&isweapon(pick)){
percentdone++;
message This rock is #v(#s,percentdone) Percent Done;
}
if(percentdone==100){
hide;
playerruppes+=1;
sleep 30;
show;
}

Dont forget, if you want a string value to appear in a message or a sign, you have to use message codes,

-Rebel95
I like this better
NPC Code:

if(playerenters){
setstring percentdone,0;
if(playertouchsme && isweapon(pick)){
percentdone++;
message This rock is strtofloat(#s(percentdone)) Percent Done;
}
if(#s(percentdone==100)){
hide;
playerruppes+=1;
sleep 30;
show;
}


but even then that wont work because percentdone is being displayed like its a flag when its a string ... and even then the command 'percentdone++' would not even work ..... and before you tried to use 'percentdone' as a variable and it was never sey as a variable .....
Reply With Quote