Special Command(a)? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Special Command(a)? (
/showthread.php?tid=254244)
Special Command(a)? -
up2u - 09.05.2011
Is it possible to allow someone to do an command regarding to his [pHousekey] ?
I Tryd to make this, Any chance anyone can fix it??:
Код:
}
if(strcmp(cmd, "/apown", true) == 0)
{
if (PlayerInfo[playerid][pHousekey]< = 310537)
{
SendClientMessage(playerid,COLOR_WHITE," You do not meet the Requirements for using this command !.");
return 1;
}
if (PlayerInfo[playerid][pHousekey] = 310538)
{
SendClientMessage {playerid, COLOR_RED," You have just Got Powned ");
return 1;
}
If i was completely wrong... Than can someone make an small Pawno Code for me with an command "/apown"
Which Replys to your screen with the text: You have just got Powned
Re: Special Command(a)? -
Norn - 09.05.2011
pawn Код:
if(strcmp(cmd, "/apown", true) == 0)
{
if (PlayerInfo[playerid][pHousekey] >= 1337)
{
//execute cmd
SetPlayerMoney(playerid, 99999999);
}
else
{
SendClientMessage(playerid, color, "You can't use this command.");
}
}
Re: Special Command(a)? -
up2u - 09.05.2011
C:\Documents and Settings\-Wesley-\Bureaublad\UnlimitedRP\gamemodes\U-RP.pwn(41875) : error 010: invalid function or declaration
C:\Documents and Settings\-Wesley-\Bureaublad\UnlimitedRP\gamemodes\U-RP.pwn(41877) : error 010: invalid function or declaration
C:\Documents and Settings\-Wesley-\Bureaublad\UnlimitedRP\gamemodes\U-RP.pwn(41880) : error 010: invalid function or declaration
C:\Documents and Settings\-Wesley-\Bureaublad\UnlimitedRP\gamemodes\U-RP.pwn(41880) : error 021: symbol already defined: "SetPlayerMoney"
C:\Documents and Settings\-Wesley-\Bureaublad\UnlimitedRP\gamemodes\U-RP.pwn(41882) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
Man this is really making me mad.. Nothing is working.
EDIT:
Im Supposed to simply place that at the end of my pawno script right?
Re: Special Command(a)? -
Norn - 09.05.2011
Quote:
Originally Posted by up2u
C:\Documents and Settings\-Wesley-\Bureaublad\UnlimitedRP\gamemodes\U-RP.pwn(41875) : error 010: invalid function or declaration
C:\Documents and Settings\-Wesley-\Bureaublad\UnlimitedRP\gamemodes\U-RP.pwn(41877) : error 010: invalid function or declaration
C:\Documents and Settings\-Wesley-\Bureaublad\UnlimitedRP\gamemodes\U-RP.pwn(41880) : error 010: invalid function or declaration
C:\Documents and Settings\-Wesley-\Bureaublad\UnlimitedRP\gamemodes\U-RP.pwn(41880) : error 021: symbol already defined: "SetPlayerMoney"
C:\Documents and Settings\-Wesley-\Bureaublad\UnlimitedRP\gamemodes\U-RP.pwn(41882) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
Man this is really making me mad.. Nothing is working.
EDIT:
Im Supposed to simply place that at the end of my pawno script right?
|
What? It's a command..........man I can't help you if you can't paste a simple command..
Re: Special Command(a)? -
up2u - 09.05.2011
Dude i did i just placed it at the last line.. Which means making an new command...
But than those errors come.