File help
#1

Hai!

Код:
		if(strcmp(cmdtext, "/suggest", true, 5)==0)
		{
		  new string[128], name[MAX_PLAYER_NAME];
		  new File:pos = fopen("suggestions.txt", io_append);
		  GetPlayerName(playerid, name, sizeof(name));
               if(!strlen(cmdtext)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /suggest <your suggestion>");
		  format(string, sizeof(string), "%s has suggested: %s ", name, cmdtext[6]);
		  fwrite(pos, string);
		  fwrite(pos, "\r\n");
		  fclose(pos);
		  SendClientMessage(playerid,COLOR_WHITE,"SERVER: You have done a suggestion!");
		  return 1;
		}
How come if you do /suggest ingame it says you have suggested something? I want it to be like: Usage: /suggesrt <yoursuggestion>.

Thanks in advance!
Reply


Messages In This Thread
File help - by GTA_Rules - 19.03.2009, 17:43
Re: File help - by MenaceX^ - 19.03.2009, 17:54
Re: File help - by GTA_Rules - 19.03.2009, 18:15
Re: File help - by LarzI - 19.03.2009, 18:24
Re: File help - by Nero_3D - 19.03.2009, 18:28
Re: File help - by LarzI - 19.03.2009, 18:31
Re: File help - by Nero_3D - 19.03.2009, 18:33
Re: File help - by GTA_Rules - 19.03.2009, 18:38
Re: File help - by LarzI - 19.03.2009, 18:43
Re: File help - by GTA_Rules - 19.03.2009, 18:46

Forum Jump:


Users browsing this thread: 2 Guest(s)