23.10.2012, 15:09
hey everyone,
i made 2 of this cmds, both same, but i thought at first one i thought, maybe its cuz of the 20 in it, so i made the other cmd with "nitro" but still not working..
commands are both the same, but that doesnt matters right?
when i use 1 of those 2 cmds in game, it says SERVER: unknown command.
and i dont know wuts wrong with this
any help would be very appreciated
greets niels
i made 2 of this cmds, both same, but i thought at first one i thought, maybe its cuz of the 20 in it, so i made the other cmd with "nitro" but still not working..
pawn Код:
CMD:nitro(playerid, params[])
{
new Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInNosVehicle(playerid))
{
for( new i; i<sizeof(CarData); i++ )
{
x = CarData[i][Nos_x];
y = CarData[i][Nos_y];
z = CarData[i][Nos_z];
rx = CarData[i][Nos_rx];
ry = CarData[i][Nos_ry];
rz = CarData[i][Nos_rz];
return 0;
}
switch(vehicleid)
{
case 411:
{
PlayerInfo[playerid][SpecialNos] = CreateObject( 1010, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 100.0 );
AttachObjectToVehicle( GetPlayerVehicleID(playerid), PlayerInfo[playerid][SpecialNos], x, y, z, rx, ry, rz );
}
}
}
else return SendClientMessage(playerid, COLOR_RED, "ERROR: there is no Special N20 bottle available for this vehicle");
return 1;
}
CMD:n20(playerid, params[])
{
new Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInNosVehicle(playerid))
{
for( new i; i<sizeof(CarData); i++ )
{
x = CarData[i][Nos_x];
y = CarData[i][Nos_y];
z = CarData[i][Nos_z];
rx = CarData[i][Nos_rx];
ry = CarData[i][Nos_ry];
rz = CarData[i][Nos_rz];
return 0;
}
switch(vehicleid)
{
case 411:
{
PlayerInfo[playerid][SpecialNos] = CreateObject( 1010, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 100.0 );
AttachObjectToVehicle( GetPlayerVehicleID(playerid), PlayerInfo[playerid][SpecialNos], x, y, z, rx, ry, rz );
}
}
}
else return SendClientMessage(playerid, COLOR_RED, "ERROR: there is no Special N20 bottle available for this vehicle");
return 1;
}
when i use 1 of those 2 cmds in game, it says SERVER: unknown command.
and i dont know wuts wrong with this
any help would be very appreciated
greets niels