01.03.2011, 11:47
(
Последний раз редактировалось Rolyy; 01.03.2011 в 14:00.
)
I got a problem, this is a command I created myself.
Compile give no errors or warnings, Once using command ingame.
Server crashed and samp-server.exe closes, The command succesfully sends SendClientMessage.
So I believe the script codes underneath the SendClientMessage is one of the problem.
Anyone help please.
Finaly, got a perfect working strcmp command with comment!
Thank you all for helping me out but I am gonna use Clive's command script (quote underneath)
Special thanks to Clive .
Compile give no errors or warnings, Once using command ingame.
Server crashed and samp-server.exe closes, The command succesfully sends SendClientMessage.
So I believe the script codes underneath the SendClientMessage is one of the problem.
Anyone help please.
pawn Код:
if(strcmp(cmdtext, "/Savepos", true) == 0)
{
new string[50];
new Float:x, Float:y, Float:z;
new File:hFile;
GetPlayerPos(playerid, x, y, z);
format(string, sizeof(string), "%f,%f,%f.", x, y, z);
SendClientMessage(playerid,COLOR_GREEN,"Player Pos Should Be Saved.");
hFile = fopen("scriptfiles/SavedPos.log", io_append);
fwrite(hFile, string);
fclose(hFile);
return 1;
}
Finaly, got a perfect working strcmp command with comment!
Thank you all for helping me out but I am gonna use Clive's command script (quote underneath)
Special thanks to Clive .
Quote:
xD, Try this
OnPlayerCommandText: pawn Код:
pawn Код:
pawn Код:
|