Special Command(a)?
#1

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
Reply
#2

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.");
    }
}
Reply
#3

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?
Reply
#4

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..
Reply
#5

Dude i did i just placed it at the last line.. Which means making an new command...
But than those errors come.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)