06.06.2017, 23:12
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)
PHP код:
if(strval(inputtext) == 70)
else if(74)
else if(149)
...
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
}