[Help] Subcommands
#5

Quote:
Originally Posted by CAR
pawn Код:
if(!strcmp(cmd, "/buyvehicle", true)) // By Ellis
    {
      new x_nr[256];
        x_nr = strtok(cmdtext, idx);
        if(!strlen(x_nr))
        {
          SendClientMessage(playerid, COLOR_WHITE, "HINT: /buyvehicle [name]");
          SendClientMessage(playerid, COLOR_WHITE, "Available vehicles: bmx (20000$), buffalo (500000$)");
          return 1;
        }
        [b]new vehicle=strval(x_nr);[/b]
      [b]if(strcmp(vehicle,"bmx",true) == 0)[/b]
            {
            SendClientMessage(playerid, COLOR_WHITE, "BMX");
            }
      [b]else if(strcmp(vehicle,"buffalo",true) == 0)[/b]
            {
            SendClientMessage(playerid, COLOR_WHITE, "buffalo");
            }
        else
            {
              SendClientMessage(playerid, COLOR_WHITE, "HINT: /buyvehicle [name]");
            SendClientMessage(playerid, COLOR_WHITE, "Available vehicles: bmx (20000$), buffalo (500000$)");
            }
      return 1;
    }
Quote:

C:\DOCUME~1\Ivan\Desktop\GTARP2\GTARP\GAMEMO~1\gta rp.pwn(16860) : error 035: argument type mismatch (argument 1)
C:\DOCUME~1\Ivan\Desktop\GTARP2\GTARP\GAMEMO~1\gta rp.pwn(16864) : error 035: argument type mismatch (argument 1)
C:\DOCUME~1\Ivan\Desktop\GTARP2\GTARP\GAMEMO~1\gta rp.pwn(16859) : warning 204: symbol is assigned a value that is never used: "vehicle"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Reply


Messages In This Thread
[Help] Subcommands - by Ivan_Pantovic - 25.04.2010, 21:07
Re: [Help] Subcommands - by aircombat - 25.04.2010, 21:34
Re: [Help] Subcommands - by Ivan_Pantovic - 25.04.2010, 22:05
Re: [Help] Subcommands - by CAR - 26.04.2010, 07:04
Re: [Help] Subcommands - by Ivan_Pantovic - 26.04.2010, 07:39

Forum Jump:


Users browsing this thread: 1 Guest(s)