05.09.2014, 13:49
Hello , I want to make something . When a player join on server , then says in chat ,,PLAYER has joined on the server,,!
I tried to make myself this ! Look here the code :
I put under OnPlayerConnect ! And look errors :
If is need help , look all OnPlayerConnect code:
Thanks!
I tried to make myself this ! Look here the code :
Код:
new string[64], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"%s has joined to server!",pName); SendClientMessageToAll(0xFFFFFFAA,string); return 1; }
Код:
C:\Users\tedi\Desktop\Romвnia Fantastic Stunt\Romвnia Fantastic Stunt\gamemodes\rrs.pwn(1124) : error 021: symbol already defined: "PlayAudioStreamForPlayer" C:\Users\tedi\Desktop\Romвnia Fantastic Stunt\Romвnia Fantastic Stunt\gamemodes\rrs.pwn(1127) : error 021: symbol already defined: "TextDrawShowForPlayer" C:\Users\tedi\Desktop\Romвnia Fantastic Stunt\Romвnia Fantastic Stunt\gamemodes\rrs.pwn(1131) : error 010: invalid function or declaration C:\Users\tedi\Desktop\Romвnia Fantastic Stunt\Romвnia Fantastic Stunt\gamemodes\rrs.pwn(1137) : error 021: symbol already defined: "format" C:\Users\tedi\Desktop\Romвnia Fantastic Stunt\Romвnia Fantastic Stunt\gamemodes\rrs.pwn(1143) : error 010: invalid function or declaration C:\Users\tedi\Desktop\Romвnia Fantastic Stunt\Romвnia Fantastic Stunt\gamemodes\rrs.pwn(1151) : error 021: symbol already defined: "TextDrawShowForPlayer" C:\Users\tedi\Desktop\Romвnia Fantastic Stunt\Romвnia Fantastic Stunt\gamemodes\rrs.pwn(1159) : error 010: invalid function or declaration C:\Users\tedi\Desktop\Romвnia Fantastic Stunt\Romвnia Fantastic Stunt\gamemodes\rrs.pwn(1167) : error 021: symbol already defined: "TextDrawHideForPlayer" C:\Users\tedi\Desktop\Romвnia Fantastic Stunt\Romвnia Fantastic Stunt\gamemodes\rrs.pwn(1171) : error 010: invalid function or declaration C:\Users\tedi\Desktop\Romвnia Fantastic Stunt\Romвnia Fantastic Stunt\gamemodes\rrs.pwn(1176) : error 021: symbol already defined: "SendClientMessage" C:\Users\tedi\Desktop\Romвnia Fantastic Stunt\Romвnia Fantastic Stunt\gamemodes\rrs.pwn(1183) : error 010: invalid function or declaration C:\Users\tedi\Desktop\Romвnia Fantastic Stunt\Romвnia Fantastic Stunt\gamemodes\rrs.pwn(13963) : warning 203: symbol is never used: "AntiVeh" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 11 Errors.
Код:
public OnPlayerConnect(playerid) { new string[64], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"%s s-a alaturat server-ului nostru!",pName); SendClientMessageToAll(0xFFFFFFAA,string); return 1; } SendConnect(playerid); PlayAudioStreamForPlayer(playerid, "https://dl.dropbox.com/u/86423219/Baauer-Harlem%20Shake%20%28Original%20mix%29.mp3"); RemoveBuildingForPlayer(playerid, 1232, 1959.7891, -1201.2031, 28.8359, 0.25); //------------------------------Clock--------------------------------------- TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date); //-------------------------------------------------------------------------- //Others //-------------------------------------------------------------------------- stime[playerid] = 0; limit[playerid] = 10; SpeedBoostMultiplier[playerid] = 1; PlayerText[playerid][hide] = 2; pstim[playerid] = 0; vptime[playerid] = 0; Act[playerid] = 0; AntiVeh[playerid] = 0; SetPVarInt(playerid, "TdsHidden", 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ format(Hold[playerid][Hld0], 256, "0"); format(Hold[playerid][Hld1], 256, "0"); format(Hold[playerid][Hld2], 256, "0"); format(Hold[playerid][Hld3], 256, "0"); format(Hold[playerid][Hld4], 256, "0"); format(Hold[playerid][Hld5], 256, "0"); format(Hold[playerid][Hld6], 256, "0"); format(Hold[playerid][Hld7], 256, "0"); format(Hold[playerid][Hld8], 256, "0"); format(Hold[playerid][Hld9], 256, "0"); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ PlayerInDM[playerid][MG1] = 0; PlayerInDM[playerid][HP] = 0; PlayerInDM[playerid][KDM] = 0; PlayerInDM[playerid][GDM] = 0; PlayerInDM[playerid][MG2] = 0; Hold[playerid][HShow] = 0; PlayerInDM[playerid][JDM] = 0; PlayerInDM[playerid][MG3] = 0; PlayerInDM[playerid][PDM] = 0; Vup[playerid] = 0; //-------------------------------------------------------------------------- //TextDraw's Hide/Show //-------------------------------------------------------------------------- TextDrawShowForPlayer(playerid, Textdraw11); TextDrawShowForPlayer(playerid, Textdraw12); TextDrawShowForPlayer(playerid, Textdraw13); TextDrawShowForPlayer(playerid, Textdraw14); TextDrawShowForPlayer(playerid, Textdraw15); TextDrawShowForPlayer(playerid, Textdraw16); TextDrawShowForPlayer(playerid, Textdraw17); TextDrawShowForPlayer(playerid, Textdraw18); TextDrawShowForPlayer(playerid, Textdraw19); TextDrawShowForPlayer(playerid, Textdraw20); TextDrawShowForPlayer(playerid, Textdraw21); TextDrawShowForPlayer(playerid, Textdraw22); TextDrawShowForPlayer(playerid, Textdraw23); TextDrawShowForPlayer(playerid, Textdraw24); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Textdraw33[playerid] = CreatePlayerTextDraw(playerid, 272.000000, 359.000000, "~b~~h~>>> ~y~~h~Unknown ~r~~h~(ID: 400-612)~b~~h~ <<<"); PlayerTextDrawBackgroundColor(playerid, Textdraw33[playerid], 255); PlayerTextDrawFont(playerid, Textdraw33[playerid], 1); PlayerTextDrawLetterSize(playerid, Textdraw33[playerid], 0.220000, 1.300000); PlayerTextDrawColor(playerid, Textdraw33[playerid], -1); PlayerTextDrawSetOutline(playerid, Textdraw33[playerid], 1); PlayerTextDrawSetProportional(playerid, Textdraw33[playerid], 1); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ TextDrawHideForPlayer(playerid, TeleTD1); TextDrawHideForPlayer(playerid, TeleTD2); TextDrawHideForPlayer(playerid, TeleTD3); //Anti-Flood// XDeaths[playerid] = 0; LastDeath[playerid] = 0;