Something wrong with the command - 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: Something wrong with the command (
/showthread.php?tid=287529)
Something wrong with the command -
Dripac - 03.10.2011
PHP код:
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;
}
}
PHP код:
C:\Users\Stefanche16\Desktop\hrpserver\gamemodes\hrp.pwn(14100) : warning 219: local 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 219: local variable "objective" shadows a variable at a preceding level
C:\Users\Stefanche16\Desktop\hrpserver\gamemodes\hrp.pwn(58044) : warning 219: local variable "objective" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 19540 bytes
Code size: 3105300 bytes
Data size: 6906296 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4192 cells (16768 bytes)
Total requirements:10047520 bytes
4 Warnings.
Re: Something wrong with the command -
Wesley221 - 03.10.2011
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
}
Re: Something wrong with the command -
Dripac - 03.10.2011
thanks, working now