12.03.2013, 17:30
I'm trying to convert my strcmp commands to zcmd but i keep getting errors on this command.. can you please help me?
PHP код:
C:\Users\JordanDrummer\Desktop\Maxed Out Roleplay\gamemodes\MaxedOutRoleplay.pwn(4956) : error 017: undefined symbol "IsPlayerLoggedIn"
C:\Users\JordanDrummer\Desktop\Maxed Out Roleplay\gamemodes\MaxedOutRoleplay.pwn(4979) : warning 225: unreachable code
C:\Users\JordanDrummer\Desktop\Maxed Out Roleplay\gamemodes\MaxedOutRoleplay.pwn(4985) : warning 225: unreachable code
C:\Users\JordanDrummer\Desktop\Maxed Out Roleplay\gamemodes\MaxedOutRoleplay.pwn(4991) : warning 225: unreachable code
C:\Users\JordanDrummer\Desktop\Maxed Out Roleplay\gamemodes\MaxedOutRoleplay.pwn(5009) : error 017: undefined symbol "string"
C:\Users\JordanDrummer\Desktop\Maxed Out Roleplay\gamemodes\MaxedOutRoleplay.pwn(5012) : error 017: undefined symbol "string"
C:\Users\JordanDrummer\Desktop\Maxed Out Roleplay\gamemodes\MaxedOutRoleplay.pwn(5017) : error 017: undefined symbol "string"
PHP код:
CMD:veh(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] < 6)
{
SendClientMessage(playerid, COLOR_NICERED, "|..::ERROR: You Can't Use This Command::..");
return 1;
}
{
SendClientMessage(playerid, COLOR_GRAD2, "TIP: /veh [carid] [color1] [color2]");
return 1;
}
new car;
if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, " Vehicle Number can't be below 400 or above 611 !"); return 1; }
{
SendClientMessage(playerid, COLOR_GRAD2, "TIP: /veh [carid] [color1] [color2]");
return 1;
}
new color1;
if(color1 < -1 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Color Number can't be below 0 or above 126 !"); return 1; }
{
SendClientMessage(playerid, COLOR_GRAD2, "TIP: /veh [carid] [color1] [color2]");
return 1;
}
if(car == 520) Hydras ++;
if(car == 425) Hunters ++;
if(car == 430) Predators ++;
if(car == 432) Rhinos ++;
new color2;
if(color2 < -1 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " 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 Float:Angle;
GetPlayerFacingAngle(playerid, Angle);
new carid = CreateVehicle(car, X,Y,Z, Angle, color1, color2, 60000);
createdcar[carid] = carid;
engineOn[carid] = true;
LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid));
PutPlayerInVehicle(playerid, carid, 0);
SendClientMessage(playerid, COLOR_GREY, string);
new housename[24]; GetVehicleName(carid, housename, sizeof(housename));
new area[36]; GetPlayer2DZone(playerid, area, sizeof(area));
ABroadCast(COLOR_LIGHTRED, string, 5);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
AdminLog(string);
}
return 1;
}