15.10.2011, 09:19
This is just one of my codes:
All the letters are for debugging.
Since I moved my server to 0.3d the "u" function that detects both names and numbers of users stopped working ALL over my mode. Does anyone know how to fix it?
PHP код:
CMD:setskin(playerid, params[])
{
if(!PlayerInfo[playerid][pAdmin])
return 0;
new
id,
skin,
string[72]
;
printf("b");
if(sscanf(params,"ui",id,skin))
return SendClientMessage(playerid,C_NICE,"[Usage] {FFFFFF}/setskin [playerid/PON] [skin]");
printf("%i | %i",id,skin);
if(!IsPlayerConnected(id))
{
printf("c");
return 0;
}
printf("a");
SetPlayerSkin(id, skin);
PlayerInfo[id][pSkin] = skin;
printf("d");
SendFormat(id,C_GRAD2,"%s has set your skin to %i",GetName(playerid),skin);
SendFormat(playerid,C_GRAD2,"You have set %s skin to %i",GetName(id),skin);
format(string,sizeof(string),"AdmWrn: {DABB3E}%s has set %s's skin to %i",GetName(playerid),GetName(id),skin);
AMsg(string,C_RED);
printf("e");
return 1;
}
Since I moved my server to 0.3d the "u" function that detects both names and numbers of users stopped working ALL over my mode. Does anyone know how to fix it?