02.04.2011, 00:59
Ok miren tengo este comando asi:
y el new asi:
y me sale el siguiente error:
PD la linea 1758 es esta:
pawn Код:
dcmd_motom(playerid,params[]) {
#pragma unused params
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
if (strfind(name, "line") != -1){
DestroyVehicle(inf[playerid]);
GetPlayerPos(playerid,Pos[playerid][1],Pos[playerid][2],Pos[playerid][3]);
nrgl[playerid]=CreateVehicle(522,Pos[playerid][1],Pos[playerid][2],Pos[playerid][3],0,-1,-1,10);
PutPlayerInVehicle(playerid,inf[playerid], 0);
PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
SendClientMessage(playerid,0xFF641AFF,"[INFO] Felicidades linezxz Obten Tu Moto");
for (new i; i < MAX_PLAYERS; i++)
if(IsPlayerInAnyVehicle(i))
{
SetVehicleHealth(GetPlayerVehicleID(i), 999999.0);
new Text3D:matricula3 = Create3DTextLabel("line Bike!",COLOR_YELLOW,30.0,30.0,5.0,30.0,0);
Attach3DTextLabelToVehicle(matricula3, nrgl, 0.0, 0.0, 0.0);
}
}
}
pawn Код:
new nrgl[MAX_PLAYERS];
new Float:Pos[MAX_PLAYERS][4];
pawn Код:
C:\Users\Javier.FamiliaGomez-PC\Desktop\M_Cmd.pwn(1758) : error 035: argument type mismatch (argument 2)
Код:
Attach3DTextLabelToVehicle(matricula3, nrgl, 0.0, 0.0, 0.0);