Skin change (dialogs)
#2

PHP код:
if(strval(inputtext) == 70 || 74 || 149 || 265 || 266 || 267 || 274 || 275 || 276 || 277 || 278 || 279 || 280 || 281 || 282 || 283 || 284 || 285 || 286 || 
                
287 || 288 || 300 || 301 || 302 || 303 || 304 || 305 || 306 || 307 || 308 || 309 || 310 || 311
Conditional statements doesn't work this way afaik. Look at the or ( || ) like if they were a new if, you'd be doing something like:

PHP код:
if(strval(inputtext) == 70)
else if(
74)
else if(
149)
... 
Does not make sense, right?

You should be using a switch for this.
https://sampwiki.blast.hk/wiki/Switch#switch

As an example with the code used above:

PHP код:
switch(strval(inputtext))
{
    case 
70,74,149//your code

Reply


Messages In This Thread
Skin change (dialogs) - by bencesz - 06.06.2017, 22:40
Re: Skin change (dialogs) - by Toroi - 06.06.2017, 23:12
Re: Skin change (dialogs) - by Abagail - 07.06.2017, 13:44
Re: Skin change (dialogs) - by bencesz - 08.06.2017, 20:05

Forum Jump:


Users browsing this thread: 1 Guest(s)