SA-MP Forums Archive
2 commands need help - 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: 2 commands need help (/showthread.php?tid=365401)



2 commands need help - Armando B - 02.08.2012

if someone can help me that has teamviewer pm me and i'll give the id and pass to help

thanks,
-A


Re: 2 commands need help - Devilxz97 - 02.08.2012

what command did u want ?


Re: 2 commands need help - A7X_CEEJAY - 02.08.2012

CMD:teamviewer
{
SendClientMessage(playerid, COLOR_WHITE, "Please describe what commands you want here, as you'll get a much quicker response.");

}


Re: 2 commands need help - Armando B - 02.08.2012

Код:
if (strcmp("/dropcar", cmdtext, true, 10) == 0)
	 {
		SendClientMessage(playerid,0xFFFF00AA, "Take The Car To The Checkpoint For Exporting!");
		SetPlayerCheckpoint(playerid,2699.4993,-2226.0491,13.5501,0.0);
		return 1;
Код:
public OnPlayerEnterCheckpoint(playerid);
{
         GivePlayerMoney(playerid, 5000);
         DisablePlayerCheckpoint(playerid);
         SendClientMessage(playerid,0xFFFF00AA, "You Have Earned $5000 For Exporting The Car!");
         return 1;
}
and

Код:
if(strcmp(cmdtext, "/robbank", true) == 0)
{
        if(IsPlayerConnected(playerid))
    {
        if(robbing[playerid] == 1)
        {
            SendClientMessage(Playerid, 0xAFAFAFAA, "You Are Already Robbing The Bank!");
            return 1;
        }
        if(alreadyrobbed[playerid] == 1)
        {
            SendClientMessage(playerid, 0xFFFFFFAA, "You Already Robbed The Bank Lately, Please Wait 1 Hour!");
            return 1;
        }
        if(!IsPlayerInRangeOfPoint(playerid, 15.0, 2394.35,-1593.94,785.62))//CHANGE X Y Z!!!
        {
            SendClientMessage(playerid, 0xAFAFAFAA, "You Are Not At The Bank!");
            return 1;
        }
        else
        {
            SendClientMessage(playerid, 0xFFFF00AA "You Have Robbed The Los Santos Local Bank And Stole $500,000!");
            robbing[playerid] = 1;
            LoopingAnim(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, 0);
            GivePlayerMoney(playerid, 1000000);
            SendClientMessageToAll(0xFF9900AA, "||----------Breaking News----------||");
            SendClientMessageToAll(0x33CCFFAA, " The Los Santos Bank Has Been Robbed!");
            SendClientMessageToAll(0x33CCFFAA, " We Advise Everyone To Stay Away From The Area");
            SendClientMessageToAll(0x33CCFFAA, " Untill Further Notice.");
            SendClientMessageToAll(0xFF9900AA, "||----------Breaking News----------||");
        }
    }
    return 1;
}
errors

Код:
C:\Documents and Settings\Owner\Desktop\LS_DM.pwn(256) : error 017: undefined symbol "robbing"
C:\Documents and Settings\Owner\Desktop\LS_DM.pwn(256) : warning 215: expression has no effect
C:\Documents and Settings\Owner\Desktop\LS_DM.pwn(256) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Owner\Desktop\LS_DM.pwn(256) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Owner\Desktop\LS_DM.pwn(256) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.