[FilterScript] Skin Changer
#2

Quote:

if(strcmp(cmd, "/skin", true) == 0)
new tmp[256];
tmp = strtok(cmdtext,idx);
SetPlayerSkin(playerid,strval(tmp));
new string[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s commanded Change Skin (/skin ID)", pname);
SendClientMessageToAll(orange, string);
return 1;
}

Is this a FS? Better to post it in useful function.
Note:
-strtok is not always used by all and it's not even defined in your script, but it's not the worst problem.
-cmd is not defined (should be the first strtok)
-there is no { at the start of the command. How is that supposed to work D: ?

Looks like you copied and pasted a part of a gamemode
Reply


Messages In This Thread
Skin Changer - by fiki574 - 24.05.2011, 12:18
Re: Skin Changer - by Phanto90 - 24.05.2011, 12:22
Re: Skin Changer - by fiki574 - 24.05.2011, 12:24
Re: Skin Changer - by Seven_of_Nine - 24.05.2011, 12:25
Re: Skin Changer - by fiki574 - 24.05.2011, 12:27
Re: Skin Changer - by Phanto90 - 24.05.2011, 12:27
Re: Skin Changer - by fiki574 - 24.05.2011, 12:30
Re: Skin Changer - by Phanto90 - 24.05.2011, 12:38
Re: Skin Changer - by fiki574 - 24.05.2011, 12:40
Re: Skin Changer - by Phanto90 - 24.05.2011, 12:41

Forum Jump:


Users browsing this thread: 1 Guest(s)