Jump to content
  • 0

C4bomb


alinutz_boy32

Question

Sall .. Am bagat in gm acum cateva ore un sistem de c4! am intalnit o problema

La stats trb sa apara cv de genu : C4Bomb: DA/Nu

am pus

[pawn] if(PlayerInfo[playerid][c4] >= 1 { c4 = "Da";}

    if(PlayerInfo[playerid][c4] < 0 { c4 = "Nu";}[/pawn]

Si imi da 4 erori!

D:\New  Romania Play Stunt!\gamemodes\RPS.pwn(16811) : error 029: invalid expression, assumed zero

D:\New  Romania Play Stunt!\gamemodes\RPS.pwn(16811) : error 022: must be lvalue (non-constant)

D:\New  Romania Play Stunt!\gamemodes\RPS.pwn(16811) : warning 215: expression has no effect

D:\New  Romania Play Stunt!\gamemodes\RPS.pwn(16812) : error 029: invalid expression, assumed zero

D:\New  Romania Play Stunt!\gamemodes\RPS.pwn(16812) : error 022: must be lvalue (non-constant)

D:\New  Romania Play Stunt!\gamemodes\RPS.pwn(16812) : warning 215: expression has no effect

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Eu ma gandeam ca trb bagate aici in stats

Tot asa trb sa fac si la /respect.

[pawn]CMD:stats ( playerid , params [ ] )

{

    new target=playerid;

    if ( !isnull ( params ) ) target=strval ( params ) ;

new str [ 100 ] , str2 [ 200 ] , str3 [ 200 ] , str4 [ 200 ] , str5 [ 250 ] , str7 [ 100 ],str6 [ 990 ];

new sts [ 10 ];

new killer [ 50 ];

new lvl [ 30 ];

new sp [ 30 ];

new vp [ 30 ];

if ( PlayerInfo [ target ] [ Kills ] == 0 ){killer = "Noob";}

if ( PlayerInfo [ target ] [ Kills ] >= 1 ){killer = "Begginer";}

if ( PlayerInfo [ target ] [ Kills ] >= 50 ){killer = "Advanced";}

if ( PlayerInfo [ target ] [ Kills ] >= 150 ){killer = "Pro";}

if ( PlayerInfo [ target ] [ Kills ] >= 400 ){killer = "Killer";}

if ( PlayerInfo [ target ] [ Kills ] >= 800 ){killer = "Master Killer";}

if ( afk [ target ] == 1 ){sts = "Da";} else {sts = "Nu";}

if ( PlayerInfo [ target ] [ Level ] == 0 ){lvl = "Player";}

if ( PlayerInfo [ target ] [ Level ] == 1 ){lvl = "Mini-Helper";}

if ( PlayerInfo [ target ] [ Level ] == 2 ){lvl = "Helper";}

if ( PlayerInfo [ target ] [ Level ] == 3 ){lvl = "Co-Moderator";}

if ( PlayerInfo [ target ] [ Level ] == 4 ){lvl = "Moderator";}

if ( PlayerInfo [ target ] [ Level ] == 5 ){lvl = "Administrator";}

if ( PlayerInfo [ target ] [ Level ] == 6 ){lvl = "Owner";}

if ( boost [ target ] == true ){sp = "Activat";} else {sp = "Dezactivat";}

if ( Vup [ target ] == 1 ){vp = "Activat";} else {vp = "Dezactivat";}

if ( IsPlayerConnected ( target ) )

{

    new ye , mo , d;

getdate ( ye , mo , d ) ;

format ( str , 100 , "{AD8693}\n{CCFF00}|»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»|\n\n" ) ;

format ( str2 , 200 , "\t{B3B3B3}Name:{FF0000}%s\n\t{B3B3B3}Date: {FF0000}%d{FFFF00}/{FF0000}%d{FFFF00}/{FF0000}%d\n" , GetName ( target ) , mo , d , ye ) ;

format ( str3 , 200 , "{BBFF00}»{9F9F9F}Admin [Level]: {CCFF00}%d [ %s ]\n{BBFF00}»{9F9F9F}Vip [Level]: {CCFF00}%d\n{BBFF00}» Kills: {CCFF00}%d\n{BBFF00}» Killer Rank :{CCFF00}%s\n{BBFF00}» Deaths :{CCFF00}%d\n" , PlayerInfo [ target ] [ Level ] , lvl , PlayerInfo [ target ] [ Vip ] , PlayerInfo [ target ] [ Kills ] , killer , PlayerInfo [ target ] [ Deaths ] ) ;

format ( str4 , 200 , "{BBFF00}»{9F9F9F}Warnings :{CCFF00}%d\n{BBFF00}» Respect :{CCFF00}%d\n{BBFF00}» NegRespect :{CCFF00}%d\n{BBFF00}» Coins :{CCFF00}%d\n{BBFF00}» Money :{CCFF00}$%d\n{BBFF00}» Score :{CCFF00}%d\n" , PlayerInfo [ target ] [ Warnings ], PlayerInfo[playerid][Respectpl], PlayerInfo[playerid][Respectmn] , PlayerInfo [ target ] [ Coins ] , GetPlayerMoney ( target ) , GetPlayerScore ( target ) ) ;

format ( str5 , 250 , "{BBFF00}»{9F9F9F}Skin :{CCFF00}%d\n{BBFF00}» {9F9F9F}Afk :{CCFF00}%s\n{BBFF00}» {9F9F9F}Speed :{CCFF00}%s\n{BBFF00}» {9F9F9F}Vup :{CCFF00}%s" , GetPlayerSkin ( target ) , sts , sp , vp ) ;

format ( str7 , 250 , "\n{CCFF00}*{AD8693}Xtreme Points (xp) :{CCFF00}%d \n{BBFF00}» {9F9F9F}C4Bombs :{CCFF00}%s " , PlayerInfo [ playerid ] [ xp ] , PlayerInfo [ playerid ] [ c4 ] ) ;

format ( str6 , 990 , "%s%s%s%s%s%s%s%s" , str , str2 , str , str3 , str4 , str5 , str7 , str ) ;

ShowPlayerDialog ( playerid , Stats , DIALOG_STYLE_MSGBOX , "{FF3300}Stats" , str6 , "Inchide" , "" ) ;

SendClientMessage ( playerid , -1 , "{B3B3B3}INFO:{FF0000}Poti folosi si /stats [ id ]" ) ;

}

else return SendClientMessage ( playerid , red , "{B3B3B3}Acest id este incorect" ) ;

return 1;

}[/pawn]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.