22.02.2012, 19:13
I know SA-MP already has a /save command in the case of it saving the coordinates to the computer you are using but the computer I am hosting my server on is not the computer I use to test the scripts so I want to make a /spos command that saves the locations in a log on the host computer. I've tried using things like
but it doesn't work.. It feeds back some chinese letters or sometimes just " '@&S ".
Can someone tell me what is wrong with this with the command?
NB: 1. Yes I did define dcmd.
2. No. No errors were shown.
3. Yes it did ShowClientMessage but I don't know what happened.
And Second question, Is this the right place to post requests for scripters for my server? If it is what is the format? Just any request?
pawn Code:
dcmd_spos(playerid, params[])
{
new loc, File:Loc, Float:pos[3], string[60];
loc = GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
File:Loc = fopen("locations.txt", io_readwrite);
format(string, 60, "\n\r %s", loc);
fwrite(File:Loc, string);
fclose(File:Loc);
SendClientMessage(playerid, -1, string);
return 1;
}
Can someone tell me what is wrong with this with the command?
NB: 1. Yes I did define dcmd.
2. No. No errors were shown.
3. Yes it did ShowClientMessage but I don't know what happened.
And Second question, Is this the right place to post requests for scripters for my server? If it is what is the format? Just any request?