/skin problem
#4

pawn Код:
if (strcmp("/skin", cmdtext, true, 10) == 0)
Change that to
pawn Код:
if (strcmp("/skin", cmd, true) == 0)
Also, make sure you have 'cmd' defined before any commands.

pawn Код:
new cmd[256];
cmd = strtok(cmdtext, idx);
...Put that before anything in OnPlayerCommandText.

You set /skin to be 10 characters big
pawn Код:
if (strcmp("/skin", cmdtext, true, 10) == 0)
/skin is in fact only 5 and so it only checks if 'cmdtext' was /skin after 10 characters have been used.

You don't even have to put a number. The default is sizeof(cell[]) :I
Reply


Messages In This Thread
/skin problem - by Squirrel - 20.05.2012, 16:38
Re: /skin problem - by MP2 - 20.05.2012, 16:39
Re: /skin problem - by Squirrel - 20.05.2012, 16:40
Re: /skin problem - by [FMJ]PowerSurge - 20.05.2012, 16:41
Re: /skin problem - by Squirrel - 20.05.2012, 16:45

Forum Jump:


Users browsing this thread: 5 Guest(s)