Jump to content

iReal.ro

Membru
  • Posts

    73
  • Joined

  • Last visited

    Never

Posts posted by iReal.ro

  1. Am o problema foarte mare la server

    Daca sting serverul inca sunt culorile masinilor in cars.cfg

    Dar daca aprind serverul dupaia dispar adica toate culorile masinilor revin pe 0 ! blabla,0,0.dasdas:) i ncars.cfg

    deci absolut la restart server se strica toate culorile masinilor, nu se salveaza :((

  2. e simplu dar e ff bun , il stiu dar eu am o problema

    Mi-am facut discoteca , am bagat muzica inauntru cand dai enter sa intri in ea etc..cand iesi sa se opreasca

    Am adaugat un sunte la inceput cand sa te loghezi si sa se opreasca cand termini si tot asa /radiocar ...etc

    Problema este urmatoare !

    is momente in car pica serverul ! asa dintrodata , in server crashdetect , zice ca nu cunoaste comanda

    [23:00:50]: The server has crashed due to an unknown error

    iar acuma ca am scos tot ce tine de Audio Streamer , audio.so numai pica !

    Cum fac sa le bag la loc dar sa numai pice serverul deloc:(

  3. Am o problema grava la server !

    Am unele chestii care se resetaza !

    Gen : pneon , defapt neon , mi-am facut sistem pentru masini la neon dar daca dau relog se salveaza, dar daca dau restart la server nu se salveaza!

    Cum pot face sa se salveze unde modific in GM sau ce trb sa fac

    La fel si cu pCarcolor1 si pCarcolor2

    La restart server se reseteaza...am comanda dupa carcolor dar numere de hidden si cand le pun , le ramane , etc dar dupa restart srv le dispare, se reseteaza:|

  4. Am si eu o problema !

    Nu imi citeste LastLogin

    Folosesc MYSQL si la tabel e selectat Timer Stamp ...samp..cum e !

    Iar in gm am urmatoarele !

    	pLastLogin[64],
    
    	// MySQLCheckConnection();
    	// Check if the account exists
    	new sqlaccountstatus = MySQLCheckAccount(plname);
    	if(sqlaccountstatus != 0)
    	{
     	// Check if the account is locked
        if (MySQLCheckAccountLocked(sqlaccountstatus) != 0)
        {
            SendClientMessage(playerid, COLOR_LIGHTRED, "This account has been locked and cannot be accessed. Please contact an admin.");
            Kick(playerid);
            return 1;
        }
        gPlayerAccount[playerid] = 1;
        PlayerInfo[playerid][pSQLID] = sqlaccountstatus;
        new loginstring[128];
        new loginname[64];
        GetPlayerName(playerid,loginname,sizeof(loginname) );
    	new lastlogin[64];
    	lastlogin = PlayerInfo[playerid][pLastLogin];
    	format(loginstring,sizeof(loginstring),"{BECBFC}Welcome back, {95A3FF}%s{BECBFC}!\n\nPlease enter your password below to login to your account. \n\n{FFFFFF}* Last Login: %s *",loginname,lastlogin);
        ShowPlayerDialog(playerid,12346,DIALOG_STYLE_PASSWORD ,"Login",loginstring,"Login","Exit");
    	}
    	else
    	{
        gPlayerAccount[playerid] = 0;
        new regstring[128];
        new regname[64];
        GetPlayerName(playerid,regname,sizeof(regname));
        format(regstring,sizeof(regstring),"{BECBFC}Welcome, {95A3FF}%s{BECBFC}! \n\nThis name is not registered so please register with entering a password below.\n",regname);
        ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD ,"Register",regstring,"Register","Exit");
    	}
      return 1;
    }
    
    public OtherTimer()
    {
    	new string[256];
    	new Float:oldposx, Float:oldposy, Float:oldposz;
        for(new i = 0; i < MAX_PLAYERS; i++)
    	{
    	    if(IsPlayerConnected(i))
    	    {
    	        if (GetPlayerState(i) == 1) CheckForWalkingTeleport(i); // IF THE PLAYER IS IN A TELEPORT ZONE, TELEPORT THEM
    	        new vehicleid = GetPlayerVehicleID(i);
                if(SafeTime[i] > 0)
    			{
    				SafeTime[i]--;
    			}
    			if(SafeTime[i] == 1)
    			{
    				if(gPlayerAccount[i] == 1 && gPlayerLogged[i] == 0)
    				{
    					new loginname[64];
    					new loginstring[128];
    					GetPlayerName(i,loginname,64);
    					new lastlogin[64];
    					lastlogin = PlayerInfo[i][pLastLogin];
     				format(loginstring,sizeof(loginstring),"{BECBFC}Welcome back, {95A3FF}%s{BECBFC}!\n\nPlease enter your password below to login to your account. \n\n{FFFFFF}* Last Login: %s *",loginname,lastlogin);
    					ShowPlayerDialog(i,12346,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit");
    				}
    			}
    			MySQLUpdatePlayerInt(query, PlayerInfo[playerid][pSQLID], "LastLogin", PlayerInfo[playerid][pLastLogin]);
    
    			if (rcnt == 110) PlayerInfo[playerid][pLastLogin] = strval(Field);
    
    
    	if(PlayerInfo[playerid][pLevel] == -999) //autoban
    	{
    		Ban(playerid);
    	}
    	else if(PlayerInfo[playerid][pCK] > 0)
    	{
    		Kick(playerid);
    	}
    
    	// Add an entry to the login log
    	new ipaddress[16];
    	GetPlayerIp(playerid,ipaddress,sizeof(ipaddress));
    	MySQLAddLoginRecord(PlayerInfo[playerid][pSQLID], ipaddress);
    
    	ClearChatbox(playerid, 8);
    	StopAudioStreamForPlayer(playerid);
    	format(string2, sizeof(string2), "Welcome to Star Gaming, %s.",playernamesplit[0]);
    	SendClientMessage(playerid, COLOR_WHITE, string2);
    	printf("%s has logged in.",playername2);
    	new string[256];
    	new dd,mm,yy;
    	new ore,mn,sec;
    	getdate(yy,mm,dd);
        gettime(ore,mn,sec);
    	format(string,sizeof(string),  "%d/%d/%d   %d:%d:%d",dd,mm,yy,ore,mn,sec);
    	strmid(PlayerInfo[playerid][pLastLogin], string, 0, strlen(string), 255);
    	SetPlayerInterior(playerid,0);
    	if (PlayerInfo[playerid][pDonateRank] > 1)
    
    
    ASTA E LA ONPLAYERLOGIN

    si uitati cum arata !

    http://postimage.org/image/nf53qkq5d/

    Nu citeste lastlogin oare de ce ?!

  5. 	if(strcmp(cmd,"/radiocar",true)==0)
    	{
    		if(IsPlayerConnected(playerid))
    		{
    			new carid = GetPlayerVehicleID(playerid);
    			if(IsPlayerInVehicle(playerid, carid))
    			{
    				if(PlayerInfo[playerid][pDonateRank] > 1)
    				{
    					new m;
    					m = GetVehicleModel(carid);
    					if(m != 510 || m != 481 || m != 509 || m != 522 || m != 521 || m != 448 || m != 457 || m !=461 || m != 462 || m != 468 || m != 463 || m != 471 || m != 523 || m != 530 || m != 581)
    					{
    						new x_nr[256];
    						new string[256];
    						x_nr = strtok(cmdtext, idx);
    						if(!strlen(x_nr))
    						{
    							SendClientMessage(playerid, COLOR_GREEN, "_______________________________________________");
    							SendClientMessage(playerid, COLOR_GRAD2, "Syntax: /radiocar [name]");
    							SendClientMessage(playerid, COLOR_WHITE, "Available Name's: ProFm , ClubStation , ProB");
    							SendClientMessage(playerid, COLOR_GREEN, "_______________________________________________");
    						return 1;
    						}
    						if(strcmp(x_nr,"profm",true) == 0)
    						{
    							PlayAudioStreamForPlayer(playerid,"http://stream.profm.ro:8012/profm.mp3");
    							return 1;
    						}
    						if(strcmp(x_nr,"clubstation",true) == 0)
    						{
    							PlayAudioStreamForPlayer(playerid,"http://asculta.radio-conect.net:8000/listen.pls");
    							return 1;
    						}
    						if(strcmp(x_nr,"clubstation",true) == 0)
    						{
    							PlayAudioStreamForPlayer(playerid,"http://asculta.radio-conect.net:8000/listen.pls");
    							return 1;
    						}
    					}
    					else
    					{
    						SendClientMessage(playerid, COLOR_CRS3, "** Acest vehicul nu poate folosi radio.");
    						return 1;
    					}
    				}
    				else
    				{
    					SendClientMessage(playerid, COLOR_CRS3, "** You don't have a Premium Account.");
    					return 1;
    				}
    			}
    			else
    			{
    				SendClientMessage(playerid, COLOR_CRS3," ** Nu esti in masina pentru a asculta radio.");
    				return 1;
    			}
    		}
    
    	return 1;
    	}
    

    Uite l-am facut mai simplu si am reusit sal fac sa numai dea erori !

    Am o intrebare daca eu conduc masina si am cont premium ! da?

    Si am pasageri !si vreau sa dau /radiocar profm

    Cum pot face sa auda si ei ?!

  6. imi da multe dastea

    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(2785) : warning 219: local variable "query" shadows a variable at a preceding level
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3011) : error 004: function "GivePlayerCash" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3040) : error 004: function "GivePlayerCash" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3091) : error 004: function "SafeResetPlayerWeapons" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3092) : error 004: function "SafeGivePlayerWeapon" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3119) : error 004: function "SafeResetPlayerWeapons" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3755) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3767) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3780) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3793) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3805) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3809) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3821) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3825) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3829) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3833) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3837) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3841) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3845) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3849) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3861) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3865) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3869) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3873) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3877) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3889) : error 004: function "PlayerToPoint" is not implemented
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(3901) : error 004: function "PlayerToPoint" is not implemented
    
    Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    26 Errors.
    

  7. //-----------------------------iReal Creaton Radio Vehicle Star Gaming--------------------
    
    if(strcmp(cmd,"/radiocar",true)==0)
    {
    	if(PlayerInfo[playerid][pDonateRank] > 1)
       	{
    		if(IsPlayerConnected(playerid))
    		{
    						new x_nr[256];
               				new carid = GetPlayerVehicleID(playerid);
               				new m;
               				m = GetVehicleModel(carid);
    					new string[256];
      	       				x_nr = strtok(cmdtext, idx);
       	        			if(!strlen(x_nr))
       	        			{
      					SendClientMessage(playerid, COLOR_GREEN, "_______________________________________________");
        					SendClientMessage(playerid, COLOR_GRAD2, "Syntax: /radiocar [name]");
         					SendClientMessage(playerid, COLOR_WHITE, "Available Name's: ProFm , ClubStation , ProB");
    					SendClientMessage(playerid, COLOR_GREEN, "_______________________________________________");
      					return 1;
    					}
    					if(strcmp(x_nr,"profm",true) == 0)
    					{
    						if(m != 510 || m != 481 || m != 509 || m != 522 || m != 521 || m != 448 || m != 457 || m !=461 || m != 462 || m != 468 || m != 463 || m != 471 || m != 523 || m != 530 || m != 581)
    						{
    							if(IsPlayerInVehicle(playerid, carid))
    							{
    
    									PlayAudioStreamForPlayer(playerid,"http://stream.profm.ro:8012/profm.mp3");
    									}
    									return 1;
    							{
      							else
      							SCM(playerid, COLOR_CRS3," ** Nu esti in masina pentru a asculta radio.");
       							return 1;
    							}
    						{
    						else
     						SCM(playerid, COLOR_CRS3, "** Acest vehicul nu poate folosi radio.");
    	 					return 1;
    					       	        }
      		   				}
    			    	       }
    				       if(strcmp(x_nr,"clubstation",true) == 0)
    				       {
    						if(m != 510 || m != 481 || m != 509 || m != 522 || m != 521 || m != 448 || m != 457 || m !=461 || m != 462 || m != 468 || m != 463 || m != 471 || m != 523 || m != 530 || m != 581)
    						{
    							if(IsPlayerInVehicle(playerid, carid))
    							{
    
    									PlayAudioStreamForPlayer(playerid,"http://asculta.radio-conect.net:8000/listen.pls");
    									}
    									return 1;
    							{
      							else
      							SCM(playerid, COLOR_CRS3," ** Nu esti in masina pentru a asculta radio.");
       							return 1;
    							}
    						{
    						else
     						SCM(playerid, COLOR_CRS3, "** Acest vehicul nu poate folosi radio.");
    	 					return 1;
    					       	        }
      		   				}
    			    	      }
    				      if(strcmp(x_nr,"prob",true) == 0)
    				       {
    						if(m != 510 || m != 481 || m != 509 || m != 522 || m != 521 || m != 448 || m != 457 || m !=461 || m != 462 || m != 468 || m != 463 || m != 471 || m != 523 || m != 530 || m != 581)
    						{
    							if(IsPlayerInVehicle(playerid, carid))
    							{
    
    									PlayAudioStreamForPlayer(playerid,"http://live128.radioprob.ro:9999/listen.pls");
    									}
    									return 1;
    							{
      							else
      							SCM(playerid, COLOR_CRS3," ** Nu esti in masina pentru a asculta radio.");
       							return 1;
    							}
    						{
    						else
     						SCM(playerid, COLOR_CRS3, "** Acest vehicul nu poate folosi radio.");
    	 					return 1;
    					       	        }
      		   				}
    			    	      }
    		}
    	{
    	else
    	SCM(playerid, COLOR_CRS3," ** You don't have a Premium Account.");
    	}
     }
    return 1;
    }
    //-------------------------------END iREAL STAR GAMING RADIO---------------------------
    
    Erorile sunt
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34903) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34923) : warning 225: unreachable code
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34924) : error 029: invalid expression, assumed zero
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34928) : warning 225: unreachable code
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34929) : error 029: invalid expression, assumed zero
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34945) : warning 225: unreachable code
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34946) : error 029: invalid expression, assumed zero
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34950) : warning 225: unreachable code
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34951) : error 029: invalid expression, assumed zero
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34967) : warning 225: unreachable code
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34968) : error 029: invalid expression, assumed zero
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34972) : warning 225: unreachable code
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34973) : error 029: invalid expression, assumed zero
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34903) : warning 204: symbol is assigned a value that is never used: "string"
    C:\Documents and Settings\Alex.ALEXANDRU\Desktop\SERVER\eStar.pwn(34981) : error 029: invalid expression, assumed zero
    

    Multe vin de la

    {

    else

    Ajutatima va rog frumos , multumesc !

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.