01.03.2012, 03:12
Made a /setrep CMD! using zcmd and sscanf2. But the problem it works sometimes. Sometimes doesnt. I cant set my rep from 9000 to 0. Idk! Can you give me proper working CMD (Admin CMD's)?
How to use settrusted function? bool? what do i need to set it to?
Im fucked up confused please help iPleo!
Even when we GMX while viewing our profile. After the GM , The profile looks like this? IDK why.
http://tinypic.com/r/11c4obp/5
As well as , after disconnecting. I dont see any kind of file containing data of our profile in my Profiles folder of scriptfiles? How come.
How to use settrusted function? bool? what do i need to set it to?
Im fucked up confused please help iPleo!
pawn Code:
CMD:setrep(playerid, params[])
{
new level, id;
if(sscanf(params, "ud", id, level))
{
if (IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setrep [playerid] [rep points]");
}
else return SendClientMessage(playerid, COLOR_WHITE, "You are not authorised to use this command!");
}
else
{
if (IsPlayerAdmin(playerid))
{
Profile_Reputation[id] = level;
SendClientMessage(id, COLOR_WHITE, "[PROFILE] You have recieved rep points. /saveprofile to save it or Relog!");
}
}
return 1;
}
http://tinypic.com/r/11c4obp/5
As well as , after disconnecting. I dont see any kind of file containing data of our profile in my Profiles folder of scriptfiles? How come.