Server problem.
#1

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.
Reply
#2

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
Reply
#3

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?
Reply
#4

-delete-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)