SA-MP Forums Archive
/dropcar 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: /dropcar help (/showthread.php?tid=366011)



/dropcar help - Armando B - 04.08.2012

can someone help me make a /dropcar system for my server? i tried but it never worked
Код:
     if(strcmp(cmdtext, "/dropcar", true) == 0)
     {
          SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}SERVER: Drop The Car Off At The Checkpoint!");
          SetPlayerCheckpoint(playerid, 115,2699.4993,-2226.0491,13.5501,92.7102);
          return 1;
     }
     public OnPlayerEnterCheckpoint(playerid);
     {
          GivePlayerMoney(playerid, 5000);
          DisablePlayerCheckpoint(playerid);
          SendClientMessage(playerid,0xFFFF00AA, "You Have Earned $5000 For Exporting The Car!");
          return 1;
     }
error(s):
Код:
C:\Documents and Settings\Owner\Desktop\Samp Stuff 2\my scripting\The Server\gamemodes\LS_DM.pwn(261) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Owner\Desktop\Samp Stuff 2\my scripting\The Server\gamemodes\LS_DM.pwn(264) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Owner\Desktop\Samp Stuff 2\my scripting\The Server\gamemodes\LS_DM.pwn(271) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: /dropcar help - Morkano - 04.08.2012

plz give me the errors of line


Re: /dropcar help - Armando B - 04.08.2012

i dont know what line there on


Re: /dropcar help - rumen98 - 04.08.2012

PHP код:
if(strcmp(cmdtext"/dropcar"true) == 0)
     {
          
SendClientMessage(playerid0xFFFFFFFF"{FF0000}SERVER: Drop The Car Off At The Checkpoint!");
          
SetPlayerCheckpoint(playerid115,2699.4993,-2226.0491,13.5501,92.7102);
          return 
1;
     }
     public 
OnPlayerEnterCheckpoint(playerid);
     {
          
GivePlayerMoney(playerid5000);
          
DisablePlayerCheckpoint(playerid);
          
SendClientMessage(playerid,0xFFFF00AA"You Have Earned $5000 For Exporting The Car!");
          return 
1;
     } 
The error is in the
PHP код:
          SetPlayerCheckpoint(playerid115,2699.4993,-2226.0491,13.5501,92.7102); 
see this
https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint
you must
PHP код:
(playeridFloat:xFloat:yFloat:zFloat:size
you have PlayerID but for what is
PHP код:
115 
?
remove 115 and Ready

Please Rep


Re: /dropcar help - Armando B - 05.08.2012

thanks i did it but i still get this error
Код:
C:\Documents and Settings\Owner\Desktop\Samp Stuff 2\my scripting\The Server\gamemodes\LS_DM.pwn(264) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Owner\Desktop\Samp Stuff 2\my scripting\The Server\gamemodes\LS_DM.pwn(271) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.