Jump to content
  • 0

Bug oare ma ajuta cineva? sper


[XSR]NexT

Question

Salut cum pot face de exemplu ca atunci cand esti la dm si sa nu te lase sa scrii vreo comanda si sati scrie daca dai la minigun /nrg sai apara type /exit for leave the deathmatch :( pentru ca am incercat o metoda cu else si nu merge adik a mers doar la un singur teleport iar acum nu mai merge nici la ala apare scrisu invizibil deci :( sper sa ma puteti ajuta :(

35012l1.png.aee1a3398b9bd9f8eec50574d2cd

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

uite-o

if (strcmp("/exitdm", cmdtext, true, 10) == 0)
    {
    if(InMinigun[playerid] == 1)
    {
    if(IsPlayerInAnyVehicle(playerid)) RemovePlayerFromVehicle(playerid);
	SetPlayerPos(playerid,403.447265,2466.154296,16.506214);
	ResetPlayerWeapons(playerid);
	SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000); // Bounderies Off//
    DM[playerid] = 0;
	InMinigun[playerid] = 0;
	}
	if(InMinigun[playerid] == 0)
    }
	return 1;
    }

35012l1.png.aee1a3398b9bd9f8eec50574d2cd

Link to comment
Share on other sites

new DM[MAX_PLAYERS];
la OnPlayerCommandText pui inaintea tuturor comenzilor
if(DM[playerid] == 1) return SendClientMessage(playerid, 0xE60000FF, "Type /exit for leave DeathMatch.");
comanda /exitdm mai sus putin adik asa:
if (strcmp("/exitdm", cmdtext, true, 10) == 0)
    {
    if(InMinigun[playerid] == 1)
    {
    if(IsPlayerInAnyVehicle(playerid)) RemovePlayerFromVehicle(playerid);
   SetPlayerPos(playerid,403.447265,2466.154296,16.506214);
   ResetPlayerWeapons(playerid);
   SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000); // Bounderies Off//
    DM[playerid] = 0;
   InMinigun[playerid] = 0;
   }
   if(InMinigun[playerid] == 0)
    {
    SendClientMessage(playerid,COLOR_ULTRARED,"You are not in Minigun zone. Type /minigun");
    }
   return 1;
    }
if(DM[playerid] == 1) return SendClientMessage(playerid, 0xE60000FF, "Type /exit for leave DeathMatch.");

iar la teleportarea catre dm pune DM[playerid] = 1;

tLYRl.gif
Link to comment
Share on other sites

=-" post="43250" timestamp="1287166569"]

Comanda /nrg

nu nai inteles deci nu e de la nrg eu vreau sa zicem sunt la /minigun ma joc acolo si sa zicem dau comanda /x si sami zica type /exit for leave the deathmatch si sa nul lase sa faca comanda am incercat altfel dar a mer cateva secunde ca sa stricat si mergea doar la /minigun la celelalte nu :|

35012l1.png.aee1a3398b9bd9f8eec50574d2cd

Link to comment
Share on other sites

si cu astea ce fac? :(

am facut exact cum ai spus dar ciu ciu

C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(342) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(395) : warning 219: local variable "DM" shadows a variable at a preceding level
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(403) : error 017: undefined symbol "strtok"
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(403) : error 033: array must be indexed (variable "cmd")
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(405) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(422) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(424) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(434) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(439) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(450) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(461) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(472) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(486) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(494) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(501) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(508) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(515) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(520) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(525) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(549) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(570) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(572) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(577) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(592) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(609) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(617) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(622) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\Nicushor\Desktop\STUNTU~1\GAMEMO~1\SU.pwn(627) : error 079: inconsistent return types (array & non-array)

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.

sorry dublu post o sa fie sters topicu dupa ce rezolv :(

35012l1.png.aee1a3398b9bd9f8eec50574d2cd

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.