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;
}