when i kick a player from my server my server close why?????
#1

i make a server for sa mp 0.2 i conver it to 0.3 but when i kick a player or quit the game my server close why?
Reply
#2

we would have to see your script to see what the problem is
Reply
#3

most likely u got something like OnPlayerDisconnect, a message there that says
"%s Left the server(lost connection or Leaving)"
u got the "Lost connection" and the "Leaving"
on "case 0: format(etc. etc.)"
and "case 1: format(Etc. etc.)"
so make a "case 2:" where it says kicked
for a (Banned) u dont need a case because thats the same a kicked.

well i hope this helps, i had this problem first to.

Notime
Reply
#4

me have this for leaving kicked or timeout

case 0: format(string, sizeof(string), "[Leave] %s has left the server... (Timeout)", pName);
case 1: format(string, sizeof(string), "[Leave] %s has left server... (Leaving)", pName);
case 2: format(string, sizeof(string), "[Leave] %s has left server... (Kicked)", pName);
Reply
#5

i still having this problem !!
Reply
#6

i fix it with an oficial gamemode lvdm
Reply
#7

Why you just try an admin FS?
Reply
#8

Post what you have under OnPlayerDeath.
Reply
#9

Quote:
Originally Posted by Giotis11
me have this for leaving kicked or timeout

case 0: format(string, sizeof(string), "[Leave] %s has left the server... (Timeout)", pName);
case 1: format(string, sizeof(string), "[Leave] %s has left server... (Leaving)", pName);
case 2: format(string, sizeof(string), "[Leave] %s has left server... (Kicked)", pName);
This is simple, i had this problem before add (playerid) to each pName like:

pName(playerid)

Код:
		case 0: format(string, sizeof(string), "[Leave] %s has left the server... (Timeout)", pName(playerid));
		case 1: format(string, sizeof(string), "[Leave] %s has left server... (Leaving)", pName(playerid));
		case 2: format(string, sizeof(string), "[Leave] %s has left server... (Kicked)", pName(playerid));
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)