27.06.2012, 15:24
Quote:
//Check to see if they are registered or logged in
if(udb_Exists(playerid)) { SendClientMessage(playerid,COLOR_ERROR,"This player name has already been registered. Please login before you spawn."); ShowLoginScreen(playerid); } else if(!udb_Exists(PlayerName(playerid))) { SendClientMessage(playerid,COLOR_ERROR,"This player name has not been registered. You must register before playing."); ShowRegisterScreen(playerid); } for(new i = 0; i < sizeof(Objects); i++) Player[playerid][view][i] = false; /////////xobj return 1; } //================================================== ============================ public OnPlayerDisconnect(playerid, reason) { if(IsPlayerNPC(playerid)) { IsSpawned[playerid] =0; return 1; } if(afktag[playerid] == 1) { new pname[16]; GetPlayerName(playerid,pname,16); strdel(pname, strlen(pname)-5, strlen(pname)); afktag[playerid] =0; SetPlayerName(playerid,pname); } new string[128]; new pname[24]; GetPlayerNameEx(playerid,pname,sizeof(pname)); //Save Wanted Level && Jailtime SavedWantedLevel[playerid] =GetPlayerWantedLevel(playerid); SavedJailTime[playerid] =JailTime[playerid]; if(PLAYERLIST_authed[playerid] == 1) { dUserSetINT(playerid).("Bankcash",BankCash[playerid]); dUserSetINT(playerid).("Cash",GetPlayerMoney(playe rid)); dUserSetINT(playerid).("Score",GetPlayerScore(play erid)); dUserSetINT(playerid).("Adminlevel",AdminLevel[playerid]); dUserSetINT(playerid).("Army",CanUseArmy[playerid]); dUserSetINT(playerid).("CIA",CanUseCIA[playerid]); dUserSetINT(playerid).("RegularPlayer",IsRegularPl ayer[playerid]); dUserSetINT(playerid).("DrugHouseOwner",DrugHouseO wner[playerid]); dUserSetINT(playerid).("OttoOwner",OttoOwner[playerid]); dUserSetINT(playerid).("TSkill",TerroristSkill[playerid]); dUserSetINT(playerid).("RobSkill",RobSkill[playerid]); dUserSetINT(playerid).("HasPackC4",HasPackC4[playerid]); dUserSetINT(playerid).("HasPackRope",HasPackRope[playerid]); dUserSetINT(playerid).("HasPackMoney",HasPackMoney[playerid]); dUserSetINT(playerid).("SavedWantedLevel",SavedWan tedLevel[playerid]); dUserSetINT(playerid).("SavedJailTime",SavedJailTi me[playerid]); } //Do things to the playerid ResetVariables(playerid); TextDrawHideForPlayer(playerid,VersionTD); TextDrawHideForPlayer(playerid,WebsiteTD); TextDrawDestroy(MessageTD[playerid]); TextDrawDestroy(JailTimer[playerid]); TextDrawDestroy(LocationTD[playerid]); if (PlayerInfo[playerid][pRoadblock] != 0) { RemoveRoadblock(playerid); } for(new i = 0; i < sizeof(Objects); i++) ////Xobj { if(Player[playerid][view][i]) { Player[playerid][view][i] = false; DestroyPlayerObject(playerid,Player[playerid][objid][i]); } } format(string,sizeof(string),"%s Has just left the server! (%s)",pname,aDisconnectNames[reason]); SendClientMessageToAll(COLOR_VIOLETBLUE,string); format(string,sizeof(string),"1%s Has just left the server! (%s)",pname,aDisconnectNames[reason]); IRC_Say(gGroupID,IRC_CHANNEL,string); return 1; } //================================================== ============================ public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) { if(strcmp(playerid, "Billy") == 0) { PutPlayerInVehicle(playerid,NPCTram,0); SetPlayerColor(playerid,COLOR_DARKOLIVEGREEN); SetPlayerSkin(playerid,255); IsSpawned[playerid] =1; print("[NPC SPAWN] Billy has been placed in his tram."); } return 1; } Try this out.I am not sure but try it. |
Код:
C:\Users\ShayaN\Desktop\SFCNC\gamemodes\SF.pwn(2304) : error 035: argument type mismatch (argument 1) C:\Users\ShayaN\Desktop\SFCNC\gamemodes\SF.pwn(2307) : error 017: undefined symbol "ShowLoginScreen" C:\Users\ShayaN\Desktop\SFCNC\gamemodes\SF.pwn(2310) : error 017: undefined symbol "PlayerName" C:\Users\ShayaN\Desktop\SFCNC\gamemodes\SF.pwn(2313) : error 017: undefined symbol "ShowRegisterScreen" C:\Users\ShayaN\Desktop\SFCNC\gamemodes\SF.pwn(2340) : error 017: undefined symbol "GetPlayerNameEx" C:\Users\ShayaN\Desktop\SFCNC\gamemodes\SF.pwn(2340) : warning 202: number of arguments does not match definition C:\Users\ShayaN\Desktop\SFCNC\gamemodes\SF.pwn(2348) : error 035: argument type mismatch (argument 1) C:\Users\ShayaN\Desktop\SFCNC\gamemodes\SF.pwn(2349) : error 035: argument type mismatch (argument 1) C:\Users\ShayaN\Desktop\SFCNC\gamemodes\SF.pwn(2349) : error 017: undefined symbol "rid" C:\Users\ShayaN\Desktop\SFCNC\gamemodes\SF.pwn(2349) : error 029: invalid expression, assumed zero C:\Users\ShayaN\Desktop\SFCNC\gamemodes\SF.pwn(2349) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 10 Errors.