View Single Post
  #14  
Old 05-26-2004, 06:14 AM
Salaisuus Salaisuus is offline
Registered User
Join Date: Mar 2004
Posts: 68
Salaisuus is on a distinguished road
It gives me error "expected format if (flag) command"
When I use
if (strequals(#p(1),drop))

And its not a weapon anyhow...

I tried this:
if (strtofloat(#s(client.potions)) >=1) {
if (playerchats && strequals(#c,drop)) {
triggeraction 0,0,Bpotion,;
}
}
if (actionBpotion){
setplayerprop #c,Dropped;
sleep 0.1;
setstring client.potions, #v(strtofloat(#s(client.potions))-1);
putnpc2 potion.gif,playerx,playery,{if (created)
{setshape 1,2,1;}
if (playetouchsme){
setstring client.potions, #v(strtofloat(#s(client.potions))+1);
destroy;}}}

It doesnt even work ofline meh...
Reply With Quote