09.01.2014, 12:49
There are several problems with the command above:
- You don't check whether the player (pID) is connected.
- You don't check whether the skin (sID) is a valid one and some invalid skins can crash the client. Valid skins are 0-73 and 75-299.
- You don't define COLOR_RED so it will give undefined symbol.
- SCM is defined as SendClientMessage. That is fine but the line:
is not correct. You need format a string first and then send the formatted text.
- You don't check whether the player (pID) is connected.
- You don't check whether the skin (sID) is a valid one and some invalid skins can crash the client. Valid skins are 0-73 and 75-299.
- You don't define COLOR_RED so it will give undefined symbol.
- SCM is defined as SendClientMessage. That is fine but the line:
pawn Код:
SCM(playerid, COLOR_RED,"Admin %s has set your skin to %i.", name, sID);