Why is this returning: Command not found? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Why is this returning: Command not found? (
/showthread.php?tid=207679)
Why is this returning: Command not found? -
hanzen - 06.01.2011
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.
Re: Why is this returning: Command not found? -
JaTochNietDan - 06.01.2011
Can't offer much help if SavePlayerData() is causing the problem, and we don't know what it is or what it contains.
Re: Why is this returning: Command not found? -
hanzen - 06.01.2011
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.