Why is this returning: Command not found?
#1

pawn Код:
COMMAND:tempset(playerid, params[])
{
    new user, f, string[128];
    if(sscanf(params, "ud", user, f)) return SendClientMessage(playerid, COLOR_WHITE, "ERROR » That's not the way, try: /tempset (player) (faction)");
    player[user][faction] = f;
    format(string, sizeof(string), "NOTE » You were added to %s by %s.", fInfo[f][fName], RemoveUnderScore(playerid)); SendClientMessage(user, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "NOTE » You added %s to %s.", RemoveUnderScore(user), fInfo[f][fName]); SendClientMessage(user, COLOR_LIGHTBLUE, string);
    //SavePlayerData(user, "faction", player[user][faction], 2);
    return 1;
}
SavePlayerData() and shit works on other commands but not just on this.
Reply
#2

Can't offer much help if SavePlayerData() is causing the problem, and we don't know what it is or what it contains.
Reply
#3

Quote:
Originally Posted by JaTochNietDan
Посмотреть сообщение
Can't offer much help if SavePlayerData() is causing the problem, and we don't know what it is or what it contains.
Well you missunderstood me, SetPlayerData is not the one saving the problem I thought it was but it's not. Seems like it's the format. I suspect the fInfo for doing it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)