18.11.2010, 05:49
(
Последний раз редактировалось Dolph; 18.11.2010 в 12:35.
)
So I am trying to make a report command where the string gets saved in a text folder.
I am pretty new at dini.
and I get this error btw
C:\GTA Server\gamemodes\MyDm.pwn(2165) : error 035: argument type mismatch (argument 3)
pawn Код:
dcmd_report(playerid, params[])
{
new pid,message[128];
if(sscanf(params,"us",pid,message)) return SendClientMessage(playerid, 0xF60000AA, "USAGE: /report [playerid] [message]");
if(!IsPlayerConnected(pid)) return SendClientMessage(playerid, COLOUR_BROWN, "There is no player online with that id/name");
if(strlen(message) < 1 || strlen(message) > 128) return SendClientMessage(playerid, COLOUR_BROWN, "Invalid message length!");
else
{
new name[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
GetPlayerName(pid,name2,sizeof(name2));
dini_Create("reports.txt");
dini_IntSet("reports.txt","%s reported %s for: %s",name,name2,message);
return 1;
}
}
and I get this error btw
C:\GTA Server\gamemodes\MyDm.pwn(2165) : error 035: argument type mismatch (argument 3)