Server problem. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Server problem. (
/showthread.php?tid=65667)
Server problem. -
Cevarr - 15.02.2009
Well, there are commands in my server and when I try to use them, the sampserver.exe closes down, like a crash.
another friend of mine had the same problem on his server, is it a problem for everyone or wat..?
or could it be an error in the script?
Im not sure really.
Please help.
Re: Server problem. -
Kanji_Suzuki - 15.02.2009
well if you useing a /crash command then im pissing my self j/k,
have you tryed a nother script and seeing if that one crashs
Re: Server problem. -
Cevarr - 15.02.2009
Actually, it seems that its a problem with the last two cmds I have made
pawn Код:
if (strcmp("/advertise", cmdtext, true, 10) == 0 || strcmp("/ad",cmdtext, true, 10) == 0)
{
new string[128];
format(string, sizeof(string), "Advertisement - %s: %s",playerid);
SendClientMessageToAll(0xFFFFFFAA, string);
SendClientMessage(playerid,0xFFFFFFAA,"You were charged $1000 for advertising.");
return 1;
}
if (strcmp("/sanews",cmdtext,true,10) == 0)
{
if (GetPlayerSkin(playerid) == 150 || GetPlayerSkin(playerid) == 240 || GetPlayerSkin(playerid) == 59)
if (PlayerToPoint(3.0,playerid,1042.2433,10.1764,1001.2845))
{
new string[128];
format(string, sizeof(string), "San Andreas News - Reporter %s: %s",playerid);
SendClientMessageToAll(0xFFFFFFAA, string);
}
else
{
SendClientMessage(playerid,0xFFFFFFAA,"SERVER: You must be at the correct location to broadcast news, as well as being an official San Andreas News Reporter!");
}
return 1;
}
Sorry for bad indentation
You can move this to scripting discussion maybe .
but can anyone identify any problems?
Re: Server problem. -
Cevarr - 15.02.2009
-delete-