Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - andr

Pages: [1]
1
mIRC/pawn Scripting / Re: Who can give me anti-vehicle-kill script
« on: February 25, 2013, 03:40:36 pm »
Write this in public OnPlayerDeath.
[pawn]if ( reason == 39 )
      {
            format( string, 128, "Auto-Kill:[ %s ] Reason:[ Vehicle-Kill ]", gPlayers[ killerid ] );
            SendClientMessageToAll( COLOR_GREEN, string );
            SetPlayerHealth( killerid , 0);
                                RemovePlayerFromVehicle( killerid );
      }[/pawn]
I haven't test it,but it should be work.
Code: [Select]
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(102) : error 017: undefined symbol "strtok"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(102) : error 033: array must be indexed (variable "tmp")
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(115) : error 017: undefined symbol "FindPlayerIDFromString"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(133) : error 017: undefined symbol "strtok"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(133) : error 033: array must be indexed (variable "tmp")
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(148) : error 017: undefined symbol "strtok"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(148) : error 033: array must be indexed (variable "tmp")
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(163) : error 017: undefined symbol "strtok"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(163) : error 033: array must be indexed (variable "tmp")
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(164) : error 017: undefined symbol "FindPlayerIDFromString"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(189) : error 017: undefined symbol "strtok"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(189) : error 033: array must be indexed (variable "tmp")
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(206) : error 017: undefined symbol "strtok"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(206) : error 033: array must be indexed (variable "tmp")
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(210) : error 017: undefined symbol "FindPlayerIDFromString"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(228) : error 017: undefined symbol "strtok"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(228) : error 033: array must be indexed (variable "tmp")
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(241) : error 017: undefined symbol "strtok"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(241) : error 033: array must be indexed (variable "tmp")
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(254) : error 017: undefined symbol "strtok"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(254) : error 033: array must be indexed (variable "tmp")
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(267) : error 017: undefined symbol "strtok"
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(267) : error 033: array must be indexed (variable "tmp")
F:\Program Files\GTA Vice City\My server\gamemodes\mode.pwn(277) : error 017: undefined symbol "strtok"

Compilation aborted.Pawn compiler 3.0.3367 Copyright (c) 1997-2005, ITB CompuPhase


26 Errors.

2
mIRC/pawn Scripting / Who can give me anti-vehicle-kill script
« on: February 24, 2013, 12:32:17 pm »
plz

3
mIRC/pawn Scripting / Who can help me?
« on: February 24, 2013, 11:48:59 am »
command !getcar BUG
i type !getcar 130
but it's not spawn
and quit the game go in again the spawn car will appear
Sorry for my bad english
[pawn]   else if (strcmp(cmd, "!getcar", true) == 0){
      tmp = strtok(cmdtext, idx);
      new len = strlen(tmp);
      new Float:angle;
      if (!len) { format(szMsg,sizeof(szMsg),"Usage: !getcar <car/id>",tmp);
      SendClientMessage(playerid, COLOR_GREY, szMsg);return 1;}
       newvar = strval(tmp);
       if (GetPlayerMoney(playerid) >= 1800){
          if (newvar < 130 || newvar > 239) {
            format(szMsg,sizeof(szMsg),"Unable to find %s.",tmp);
            SendClientMessageToAll(COLOR_GREY, szMsg);
         } else {
            GetPlayerPos(playerid,x,y,z);
            GetPlayerFacingAngle(playerid,angle);
              newvar = CreateVehicle(newvar,x,y,z,angle,-1,-1);
              PutPlayerInVehicle(playerid,newvar);
              PutDirectlyInVehicle(playerid,newvar);
              format(szMsg,sizeof(szMsg),"Found %s.",tmp);
         }
        } else {
         SendClientMessage(playerid,COLOR_GREEN,"You don't have 1800 dollars!");
        }
        return 1;[/pawn]

Pages: [1]