Posts: 617
Threads: 26
Joined: May 2010
Reputation:
0
Ok ive already started my new gamemode and i have things already in the OnPlayerConnect and OnPlayerDisconect and want to add the connect and leaving messages but everytime i try to and go to compile it itdoesnt work i get alot of errors and im doing it all right i got the connect message pwn code from wiki
Posts: 2,938
Threads: 162
Joined: May 2010
pawn Код:
new string[64];
new playerName[24];
GetPlayerName(playerid, playerName, 24);
switch(reason)
{
case 0:
format(string, sizeof(string), "%s has left the server. (Timeout / Crash)", playerName);
case 1:
format(string, sizeof(string), "%s has left the server. (Leaving/Quit)", playerName);
case 2:
format(string, sizeof(string), "%s has left the server. (Kicked/Banned)", playerName);
}
Posts: 617
Threads: 26
Joined: May 2010
Reputation:
0
thank you i will try this now