View Single Post
  #7  
Old 07-19-2001, 12:44 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
lol

Quote:
Originally posted by konidias
NPC Code:

if (playerchats && strequals(#c,item count)) {
setplayerprop #c,You have #s(client.itemcount) itemname(s)!;
}



There you go..

Jadis, you left out the {} plus mine is neater =D
you dont need {} if you only dealing with one thing like

if(playerchats&&strequals(#c,test))
say2 test;

see you wouldn't need them because you only have 1 thing in there but if you do more then 1 thing then you have to use the {}

like

if(playerchats&&strequals(#c,test)){
say2 test;
message test;
}
__________________
Thanks,
-KJL
Reply With Quote