01.12.2012, 08:58
Код HTML:
if(strcmp(cmdtext, "/veh", true) == 0) { { new CreatedCars[100]; new CreatedCar; new idx; new tmp[128]; new cmd[256]; cmd = strtok(cmdtext, idx); if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, 0x4B00B0AA, "Gamoyeneba: /veh [carid] [color1] [color2]"); return 1; } new car; car = strval(tmp); if(car < 400 || car > 611) { SendClientMessage(playerid, 0x4B00B0AA, " Vehicle Number can't be below 400 or above 611 !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, 0x4B00B0AA, "USAGE: /veh [carid] [color1] [color2]"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, 0x4B00B0AA, " Color Number can't be below 0 or above 126 !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, 0x4B00B0AA, "USAGE: /veh [carid] [color1] [color2]"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, 0x4B00B0AA, " Color Number can't be below 0 or above 126 !"); return 1; } new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); new carid = CreateVehicle(car, X,Y,Z, 0.0, color1, color2, 60000); CreatedCars[CreatedCar] = carid; CreatedCar ++; format(string, sizeof(string), " Vehicle %d spawned.", carid); SendClientMessage(playerid, 0x4B00B0AA, string); } return 1; } return 0; }
Код HTML:
D:\Files\Programs\BIG CITY LIFE\gamemodes\BCL.pwn(220) : warning 204: symbol is assigned a value that is never used: "string" D:\Files\Programs\BIG CITY LIFE\gamemodes\BCL.pwn(387) : error 017: undefined symbol "string" D:\Files\Programs\BIG CITY LIFE\gamemodes\BCL.pwn(387) : error 017: undefined symbol "string" D:\Files\Programs\BIG CITY LIFE\gamemodes\BCL.pwn(387) : error 029: invalid expression, assumed zero D:\Files\Programs\BIG CITY LIFE\gamemodes\BCL.pwn(387) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.