SA-MP Forums Archive
Help mee - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help mee (/showthread.php?tid=531842)



Help mee - arlindi - 14.08.2014

PHP код:
        case DIALOG_SHOUT:
        {
            if(
response)
            {
                switch(
listitem)
                {
                      case 
0:
                    {
                      if(
pInfo[playerid][pDeaths] <= 0)// the line is this.
                      
SetPlayerAttachedObjectplayerid01907810.337255, -0.102219, -0.1702820.0000000.0000000.0000001.0000001.0000001.000000 ); else { SendXPError(playerid,0);
                    }
                    
/*case 1: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts BOOMER INCOMING!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
                    case 2: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts SCREAMER INCOMING!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
                    case 3: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts STOMPER INCOMING!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
                    case 4: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts it's clear!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
                    case 5: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts Zombies Nearby!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
                    case 6: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts ZOMBIES INCOMING!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
                    case 7: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts Need assistance!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
                    case 8: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts Need backup!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
                    case 9: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts Ghost Incoming!!",PlayerName(playerid)), SendHMessage(shoutstring,-1);*/
                
}
            }
        } 
errors
PHP код:
C:\Users\Arlindi\Desktop\fsdf Copy Copy\gamemodes\zma4.pwn(1621) : warning 217loose indentation
C
:\Users\Arlindi\Desktop\fsdf Copy Copy\gamemodes\zma4.pwn(1621) : error 014invalid statementnot in switch
C:\Users\Arlindi\Desktop\fsdf Copy Copy\gamemodes\zma4.pwn(1621) : warning 215expression has no effect
C
:\Users\Arlindi\Desktop\fsdf Copy Copy\gamemodes\zma4.pwn(1621) : error 001expected token";"but found ":"
C:\Users\Arlindi\Desktop\fsdf Copy Copy\gamemodes\zma4.pwn(1621) : error 029invalid expressionassumed zero
C
:\Users\Arlindi\Desktop\fsdf Copy Copy\gamemodes\zma4.pwn(1621) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors




Re: Help mee - arlindi - 14.08.2014

AnyOne?


Respuesta: Help mee - Cepillado - 14.08.2014

Try

Код:
if(pInfo[playerid][pDeaths] <= 0)
{ 
SetPlayerAttachedObject( playerid, 0, 19078, 1, 0.337255, -0.102219, -0.170282, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); 
}
else { SendXPError(playerid,0); 
}



Re: Help mee - VishvaJeet - 15.08.2014

Код:
        case DIALOG_SHOUT:
        {
            if(response)
            {
                switch(listitem)
                {
                      case 0:
                    {
                      if(pInfo[playerid][pDeaths] <= 0)// the line is this.
                      SetPlayerAttachedObject( playerid, 0, 19078, 1, 0.337255, -0.102219, -0.170282, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); 
                      else SendXPError(playerid,0);
                    }
                    /*case 1: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts BOOMER INCOMING!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
                    case 2: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts SCREAMER INCOMING!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
                    case 3: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts STOMPER INCOMING!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
                    case 4: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts it's clear!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
                    case 5: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts Zombies Nearby!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
                    case 6: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts ZOMBIES INCOMING!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
                    case 7: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts Need assistance!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
                    case 8: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts Need backup!",PlayerName(playerid)), SendHMessage(shoutstring,-1);
                    case 9: format(shoutstring,sizeof(shoutstring),""chat""COL_LIGHTBLUE" %s Shouts Ghost Incoming!!",PlayerName(playerid)), SendHMessage(shoutstring,-1);*/
                }
            }
        }
Try This