Something wrong with the command
#1

PHP код:
COMMAND:woofer(playeridparams[])
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            if(
GetPVarInt(playerid"DonatorRank")  > || PlayerInfo[playerid][pAdmin] > 1337)
            {
                
ShowPlayerDialog(playerid,7212,DIALOG_STYLE_LIST,"{FFFFFF}Woofer Menь","{008000}Riesiger Woofer\
                \n{008000}Mittlerer Woofer\
                \n{008000}Normaler Woofer\
                \n{008000}Woofer\
                \n{008000}Kleiner Woofer\
                \n{800080}Woofer entfernen\
                \n{FF0000}Kofferraum цffnen/schlieЯen"
,"Auswдhlen","Abbrechen");
            }
            else return 
SendClientMessage(playerid,GREY,"Du kannst das nur im Fahrzeug benutzen!");
            return 
1;
        }
    } 
PHP код:
C:\Users\Stefanche16\Desktop\hrpserver\gamemodes\hrp.pwn(14100) : warning 219local variable "objective" shadows a variable at a preceding level
C
:\Users\Stefanche16\Desktop\hrpserver\gamemodes\hrp.pwn(23338) : warning 209: function "cmd_woofer" should return a value
C
:\Users\Stefanche16\Desktop\hrpserver\gamemodes\hrp.pwn(57630) : warning 219local variable "objective" shadows a variable at a preceding level
C
:\Users\Stefanche16\Desktop\hrpserver\gamemodes\hrp.pwn(58044) : warning 219local variable "objective" shadows a variable at a preceding level
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
Header size
:          19540 bytes
Code size
:          3105300 bytes
Data size
:          6906296 bytes
Stack
/heap size:      16384 bytesestimated maxusage=4192 cells (16768 bytes)
Total requirements:10047520 bytes
4 Warnings

Reply
#2

pawn Код:
COMMAND:woofer(playerid, params[])
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            if(GetPVarInt(playerid, "DonatorRank")  > 1 || PlayerInfo[playerid][pAdmin] > 1337)
            {
                ShowPlayerDialog(playerid,7212,DIALOG_STYLE_LIST,"{FFFFFF}Woofer Menь","{008000}Riesiger Woofer\
                \n{008000}Mittlerer Woofer\
                \n{008000}Normaler Woofer\
                \n{008000}Woofer\
                \n{008000}Kleiner Woofer\
                \n{800080}Woofer entfernen\
                \n{FF0000}Kofferraum цffnen/schlieЯen"
,"Auswдhlen","Abbrechen");
            }
            else return SendClientMessage(playerid,GREY,"Du kannst das nur im Fahrzeug benutzen!");
            return 1;
        }
        return 1; // you forgot this one
    }
Reply
#3

thanks, working now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)