View Single Post
  #6  
Old 01-23-2002, 01:26 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
// NPC made by Lord Helmut
if(created){
this.max=7;
}
if(playerchats) {
tokenize #c;
if (strequals(#t(0),AddTenant)){
tokenize #s(server.ph1tenants);
if(strequals(#a,#t(0))){
if (tokenscount<=this.max) {
tokenize #c;
addstring server.ph1tenants,#t(1);
}else{
setplayerprop #c,You already have #v(this.max) tenants!;
}
}
}
if (strequals(#t(0),RemoveTenant)){
tokenize #s(server.ph1tenants);
if(strequals(#a,#t(0))){
removestring server.ph1tenants,#t(1);
}
}
}

Can anyone see any problems? For some reason when I make someone owner and they say addtenant it says You already have 0 tenants!

It works for me and lets me add people but anyone else it wont work for online =/
Reply With Quote