Peršokti į turinį
djtomis123

Uz pagalba +RP

Recommended Posts

Cie del masinos sitemos

C:\Users\Vartotojas\Desktop\GM\RSFG -1.5.7\filterscripts\Valdymas.pwn(60) : error 035: argument type mismatch (argument 3)
C:\Users\Vartotojas\Desktop\GM\RSFG -1.5.7\filterscripts\Valdymas.pwn(68) : error 035: argument type mismatch (argument 3)
C:\Users\Vartotojas\Desktop\GM\RSFG -1.5.7\filterscripts\Valdymas.pwn(113) : error 030: compound statement not closed at the end of file (started at line 28)
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.

Ir stai visas skriptas

    #include 
#pragma tabsize 0
   new engine, lights, alarm, doors, bonnet, boot, objective;

   public OnFilterScriptInit()
   {
           ManualVehicleEngineAndLights();
           print("\n\n\n");
           print("\n\n\n");
           return 1;
   }

   public OnPlayerStateChange(playerid, newstate, oldstate)
   {
           if(newstate == PLAYER_STATE_DRIVER)
           {
                   SendClientMessage(playerid, 0xFF9900FF, "{F81414}* Transporto valdymo komandos: ");
                   SendClientMessage(playerid, 0x00FF00FF, "{FFFFFF}Mygtukas 8: {C3C3C3}Ájungia/Iðjungia transporto ðviesas");
                   SendClientMessage(playerid, 0x00FF00FF, "{FFFFFF}Mygtukas 2: {C3C3C3}Uþkuria/Uþgesina transporto variklá");
                   SendClientMessage(playerid, 0x00FF00FF, "{FFFFFF}Mygtukas 6: {C3C3C3}Atidaro/Uþdaro transporto kapotà");
                   SendClientMessage(playerid, 0x00FF00FF, "{FFFFFF}Mygtukas 4: {C3C3C3}Atidaro/Uþdaro transporto bagaþinæ");
           }
           return 1;
   }

   public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
   {
           new vid = GetPlayerVehicleID(playerid);
           GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
           if(newkeys == KEY_ANALOG_UP)
           {
               		if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
	    {
		SendClientMessage(playerid, 0xFF9900FF, "{C3C3C3}* Privalote sedëti vairuotojo vietoje");
		return 1;
		}
                   if(lights == 1)
                   {
                           SetVehicleParamsEx(vid,engine,0,alarm,doors,bonnet,boot,objective);
                           SendClientMessage(playerid, 0xFF9900FF, "Ðviesos {FF0000}iðjungtos.");
                   }
                   else if(lights == -1||lights == 0)
                   {
                           SetVehicleParamsEx(vid,engine,1,alarm,doors,bonnet,boot,objective);
                           SendClientMessage(playerid, 0xFF9900FF, "Ðviesos {FF0000}ájungtos.");
                   }
           }

           if(newkeys == KEY_FIRE)
           {
               		if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
	    {
		SendClientMessage(playerid, 0xFF9900FF, "* Turite buti masinos vairuotojas!!");
		return 1;
		}
                   if(engine == 1)
                   {
                           SetVehicleParamsEx(vid,0,lights,alarm,doors,bonnet,boot,objective);
                           new string[18];
   						format(string, sizeof(string), 0xFF9900FF, "Variklis {FF0000}uþgesintas.");
   						GameTextForPlayer(playerid, string, 3000, 1);
  							 return 1;
                   }
                   else if(engine == -1||engine == 0)
                   {
                           SetVehicleParamsEx(vid,1,lights,alarm,doors,bonnet,boot,objective);
                           new string[18];
   						format(string, sizeof(string), 0xFF9900FF, "Variklis {FF0000}Uzkurtas.");
   						GameTextForPlayer(playerid, string, 3000, 1);
  							 return 1;
           }

           if(newkeys == KEY_ANALOG_LEFT)
           {
               		if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
	    {
		SendClientMessage(playerid, 0xFF9900FF, "* Turite buti masinos vairuotojas!!");
		return 1;
		}
                   if(boot == 1)
                   {
                           SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,0,objective);
                           SendClientMessage(playerid, 0xFF9900FF, "Bagaþinë {FF0000}uþdaryta.");
                   }
                   else if(boot == -1||boot == 0)
                   {
                           SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,1,objective);
                           SendClientMessage(playerid, 0xFF9900FF, "Bagaþinë {FF0000}atidaryta.");
                   }
           }

           if(newkeys == KEY_ANALOG_RIGHT)
           {
               		if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
	    {
		SendClientMessage(playerid, 0xFF9900FF, "* Turite buti masinos vairuotojas!!");
		return 1;
		}
                   if(bonnet == 1)
                   {
                           SetVehicleParamsEx(vid,engine,lights,alarm,doors,0,boot,objective);
                           SendClientMessage(playerid, 0xFF9900FF, "Kapotas {FF0000}uþdarytas.");
                   }
                   else if(bonnet == -1||bonnet == 0)
                   {
                           SetVehicleParamsEx(vid,engine,lights,alarm,doors,1,boot,objective);
                           SendClientMessage(playerid, 0xFF9900FF, "Kapotas {FF0000}atidarytas.");
                   }
           }
           return 1;
   }

Dalintis šį pranešimą


Nuoroda iki šio pranešimo
Dalintis per kitą puslapį

#include 
#pragma tabsize 0
   new engine, lights, alarm, doors, bonnet, boot, objective;

   public OnFilterScriptInit()
   {
           ManualVehicleEngineAndLights();
           print("\n\n\n");
           print("\n\n\n");
           return 1;
   }

   public OnPlayerStateChange(playerid, newstate, oldstate)
   {
           if(newstate == PLAYER_STATE_DRIVER)
           {
                   SendClientMessage(playerid, 0xFF9900FF, "{F81414}* Transporto valdymo komandos: ");
                   SendClientMessage(playerid, 0x00FF00FF, "{FFFFFF}Mygtukas 8: {C3C3C3}A'jungia/I?jungia transporto ?viesas");
                   SendClientMessage(playerid, 0x00FF00FF, "{FFFFFF}Mygtukas 2: {C3C3C3}U?kuria/U?gesina transporto varikla'");
                   SendClientMessage(playerid, 0x00FF00FF, "{FFFFFF}Mygtukas 6: {C3C3C3}Atidaro/U?daro transporto kapota`");
                   SendClientMessage(playerid, 0x00FF00FF, "{FFFFFF}Mygtukas 4: {C3C3C3}Atidaro/U?daro transporto baga?inæ");
           }
           return 1;
   }

   public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
   {
           new vid = GetPlayerVehicleID(playerid);
           GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
           if(newkeys == KEY_ANALOG_UP)
           {
                     if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
         {
        SendClientMessage(playerid, 0xFF9900FF, "{C3C3C3}* Privalote sedeti vairuotojo vietoje");
        return 1;
        }
                   if(lights == 1)
                   {
                           SetVehicleParamsEx(vid,engine,0,alarm,doors,bonnet,boot,objective);
                           SendClientMessage(playerid, 0xFF9900FF, "?viesos {FF0000}i?jungtos.");
                   }
                   else if(lights == -1||lights == 0)
                   {
                           SetVehicleParamsEx(vid,engine,1,alarm,doors,bonnet,boot,objective);
                           SendClientMessage(playerid, 0xFF9900FF, "?viesos {FF0000}a'jungtos.");
                   }
           }

           if(newkeys == KEY_FIRE)
           {
                     if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
         {
        SendClientMessage(playerid, 0xFF9900FF, "* Turite buti masinos vairuotojas!!");
        return 1;
        }
                   if(engine == 1)
                   {
                   new string[35];
                   SetVehicleParamsEx(vid,0,lights,alarm,doors,bonnet,boot,objective);
                   format(string,sizeof(string),"Variklis uzgesintas.");
                   GameTextForPlayer(playerid, string, 3000, 1);
                   return 1;
                   }
                   else if(engine == -1||engine == 0)
                   {
                           SetVehicleParamsEx(vid,1,lights,alarm,doors,bonnet,boot,objective);
                           new string[18];
                     format(string, sizeof(string),"Variklis Uzkurtas.");
                     GameTextForPlayer(playerid, string, 3000, 1);
                        return 1;
           }

           if(newkeys == KEY_ANALOG_LEFT)
           {
                     if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
         {
        SendClientMessage(playerid, 0xFF9900FF, "* Turite buti masinos vairuotojas!!");
        return 1;
        }
                   if(boot == 1)
                   {
                           SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,0,objective);
                           SendClientMessage(playerid, 0xFF9900FF, "Bagazine {FF0000}uzdaryta.");
                   }
                   else if(boot == -1||boot == 0)
                   {
                           SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,1,objective);
                           SendClientMessage(playerid, 0xFF9900FF, "Bagazine {FF0000}atidaryta.");
                   }
           }

           if(newkeys == KEY_ANALOG_RIGHT)
           {
                     if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
         {
        SendClientMessage(playerid, 0xFF9900FF, "* Turite buti masinos vairuotojas!!");
        return 1;
        }
                   if(bonnet == 1)
                   {
                           SetVehicleParamsEx(vid,engine,lights,alarm,doors,0,boot,objective);
                           SendClientMessage(playerid, 0xFF9900FF, "Kapotas {FF0000}u?darytas.");
                   }
                   else if(bonnet == -1||bonnet == 0)
                   {
                           SetVehicleParamsEx(vid,engine,lights,alarm,doors,1,boot,objective);
                           SendClientMessage(playerid, 0xFF9900FF, "Kapotas {FF0000}atidarytas.");
                   }
           }
           return 1;
   }
   return 1;
   }

Nebuvo tinkamai formatuojamos žinutės, GameTextForPlayer stiliui nėra naudojama hex spalvos. Ir nebuvo uždarytas paskutinis callbackas

Dalintis šį pranešimą


Nuoroda iki šio pranešimo
Dalintis per kitą puslapį




if(!strcmp(cmdtext, "/say ", true,5))
    {
         if(cmdtext[5]==0){SendClientMessage(playerid, WHITE, "* Naudojimas: /say [tekstas]"); return 1;}
         new zin[128],name[MAX_PLAYER_NAME];
         GetPlayerName(playerid,name,MAX_PLAYER_NAME);
         format(zin,sizeof(zin),"~G~%s: %s",name,cmdtext[5]);
         	for(new i=0;i	{
	if(IsPlayerConnected(i))
	{
			GameTextForPlayer(i,zin,5000,5);
	}
}
         return 1;}
         	      if(!strcmp(cmdtext, "/say", true)){
      SendClientMessage(playerid, RED, "* Naudojimas: /say [tekstas]");
      return 1;
	}

Va tau reikalingas scriptas.

Dalintis šį pranešimą


Nuoroda iki šio pranešimo
Dalintis per kitą puslapį


Komentuoti gali tik prisijungę nariai

Jeigu turite paskyrą, prisijunkite

Sukurti paskyrą

Sukurkite paskyrą mūsų forume

Registruotis

Prisijungti

Turite paskyrą? Prisijunkite

Prisijungti dabar

  • Narių peržiūri šį forumą:   0 nariai

    Nėra registruotų narių peržiūrinčių šį forumą.


  • SuperGames programele
  • SuperGames programele


×