20.11.2010, 20:25
Use this:
Add this at the top of OnPlayerCommandText:
then:
Getting 26 errors? Add an extra brace '}' at the end of this script.
@Anthony
Stop posting crap.
@The post below me
That's also crap mate, that script 100% fails.
Add this at the top of OnPlayerCommandText:
pawn Код:
new cmd[128];
cmd = strtok(cmdtext, idx);
pawn Код:
if (strcmp(cmd, "/skin", true) == 0)
{
new tmp[256];
tmp = strtok (cmdtext, idx);
skinid = strval(tmp);
if(IsPlayerInRangeOfPoint(playerid,10,198.9780,-127.8640,1003.5152))
{
if(!strlen(tmp)) // Removed ! at TMP. ! means NOT. so !strlen = NOT strlen.
SendClientMessage(playerid, COLOR_RED, "USAGE: /skin [ID]");
return 1; // If you won't return, it will continue the script.
}
SetPlayerSkin(playerid, skin);
SendClientMessage(playerid, COLOR_GREEN, "Your skin has been successfully changed!");
return 1;
}
else
}
SendClientMessage(playerid, COLOR_RED, "You must be in the clothing store.");
return 1;
}
}
@Anthony
Stop posting crap.
@The post below me
That's also crap mate, that script 100% fails.