04.07.2012, 22:31
so i tryed to delete test for passport, and put it at start when player connect, but now i got some errors and im no idea how to fix them.
Код HTML:
public OnPlayerRequestClass(playerid, classid) { new string[768]; PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0); PlayerInfo[playerid][pModel] = Peds[classid][0]; if(IsPlayerNPC(playerid)) { SpawnPlayer(playerid); return 1; } if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1) { // ========================================================= PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0); Camera[playerid] = 1; CameraX[playerid] = 1460.0; CameraY[playerid] = -1324.0; CameraZ[playerid] = 287.2; //========================================================= ClearChatbox(playerid, 10); format(string, sizeof(string), "{33CCFF} Welcome To Evolution Roleplay", Version); SendClientMessage(playerid, COLOR_YELLOW, string); format(string, sizeof(string), "{33CCFF} Your home to the ultimate Role-Playing experience!", Version); SendClientMessage(playerid, COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_YELLOW2, " "); new message[] = "\t\t\t\t\t\t Evolution Roleplay Terms and Conditions \n\n\n\n\n\n 1- This server contains adult content. You agree that you have the legal age in your country to be exposed to such material\n\n 2- This server does not allows Hacks, you agree that you are not going to use any third party program in order to get any advantage."; new message2[] = "\n\n 3- By Reading this, you agree to Follow all server /rules with risk of being kicked or banned by breaking them.\n\n 4- By reading this you also agree that you will obey administrators ALWAYS, unless it breaks any term (1) (2) (3) (5). \n\n 5- This server obeys the Terms and Conditions made by the SA:MP Team at www.sa-mp.com/service_agreement \n\n\n Press on 'Agree' If you Agree, 'Refuse' If you refuse."; format(string, sizeof(string),"%s %s",message,message2); ShowPlayerDialog(playerid,1244,DIALOG_STYLE_MSGBOX,"Evolution RP Terms and Conditions",string,"Agree","Refuse"); PlayerInfo[playerid][pModel] = Peds[classid][0]; SetPlayerTeamFromClass(playerid,classid); //========================================================= Camera[playerid] = 1; CameraX[playerid] = 755.1537; CameraY[playerid] = -1592.8079; CameraZ[playerid] = 70.7801; new Welcomemessege[128],name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,MAX_PLAYER_NAME); format(Welcomemessege,sizeof(Welcomemessege),"~k~ ~y~Welcome %s !",name); //~k~ is not a valid color , you have to replace it GameTextForPlayer(playerid,Welcomemessege,10000,6); //========================================================= if(PlayerInfo[playerid][pPassport] == 0 || gPlayerLogged[playerid] == 1) { ClearChatbox(playerid, 10); TestStep[playerid] = 1; SendClientMessage(playerid, COLOR_YELLOW,"1 - What does 'Roleplay' Stands for?"); ClearChatbox(playerid, 4); SendClientMessage(playerid, COLOR_YELLOW,"a. The Place where i can kill everyone with my car"); SendClientMessage(playerid, COLOR_YELLOW,"b. The place where i can hack money and give it away."); SendClientMessage(playerid, COLOR_YELLOW,"c. The place where i must act like i was in real life."); SendClientMessage(playerid, COLOR_YELLOW,"d. The place where i must take a gun and kill everyone."); SendClientMessage(playerid, COLOR_YELLOW,"e. The place where i must annoy others for admin status."); OnPassportTest[playerid] = 1; } } else { SpawnPlayer(playerid); } InterpolateCameraPos(playerid, 813.0571, -1400.3551, 12.7071, 1171.9537, -1401.3564, 13.9669, 60000, CAMERA_MOVE); InterpolateCameraLookAt(playerid, 814.0610, -1400.3408, 12.9071, 1172.9579, -1401.3066, 14.0569, 60000, CAMERA_MOVE); SetTimer("tuttime1", 40000, 1); }
Код:
C:\Users\MaticKepa\Desktop\Real Life ENG\gamemodes\mazda.pwn(19645) : warning 217: loose indentation C:\Users\MaticKepa\Desktop\Real Life ENG\gamemodes\mazda.pwn(19666) : warning 209: function "OnPlayerRequestClass" should return a value Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.