Plate Posted February 16, 2013 Posted February 16, 2013 Hola neceisto una ayuda con este script en el que me ayudo Solidsnake14 y Alex_Steel me dice: Bad Argument @ setPlayerTeam Bad Argument @ getPlayerName [ Expected element at argument 1, got boolean ] attempt to concatentate a boolean valvue client: function deteam (player) local row, col = guiGridListGetSelectedItem ( teamList ) if ( row and col and row ~= -1 and col ~= -1 ) then local team = guiGridListGetItemText ( teamList, row, columnA ) triggerServerEvent ( "onClanPlayerMove", localPlayer, getPlayerFromName ( player ), team ) end end addEventHandler ( "onClientGUIClick", mover, deteam, false ) server: function setTeam(player, teamName) local theTeam = getTeamFromName ( teamName ) if ( theTeam ) then setPlayerTeam ( player , theTeam ) outputChatBox(getPlayerName(source).." agrego a "..getPlayerName(player).." al clan "..getTeamName(theTeam).."", getRootElement(), 0, 255 ,255 ,true) end end addEvent("onClanPlayerMove", true) addEventHandler("onClanPlayerMove",getRootElement(), setTeam) Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Castillo Posted February 16, 2013 Posted February 16, 2013 "player" no esta definido client side. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Plate Posted February 16, 2013 Author Posted February 16, 2013 function deteam (player) Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Alexs Posted February 16, 2013 Posted February 16, 2013 Es un argumento que no utilizaste. Developer @ MYVAL
Castillo Posted February 16, 2013 Posted February 16, 2013 function deteam (player) Estas cometiendo el mismo error que en el tema donde te ayude hoy. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Plate Posted February 16, 2013 Author Posted February 16, 2013 guiGridListGetSelectedItem guiGridListGetItemText eso no? Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Castillo Posted February 16, 2013 Posted February 16, 2013 Si. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Plate Posted February 16, 2013 Author Posted February 16, 2013 function deteam (player) local row, col = guiGridListGetSelectedItem ( teamList ) if ( row and col and row ~= -1 and col ~= -1 ) then local row2, col2 = guiGridListGetSelectedItem ( playerList ) if ( row2 and col2 and row2 ~= -1 and col2 ~= -1 ) then local team = guiGridListGetItemText ( teamList, row, columnA ) local player = guiGridListGetItemText ( playerList, row3, column ) triggerServerEvent ( "onClanPlayerMove", localPlayer, getPlayerFromName ( player ), team ) end end addEventHandler ( "onClientGUIClick", mover, deteam, false ) Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Castillo Posted February 16, 2013 Posted February 16, 2013 "row3" no esta definido. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Plate Posted February 16, 2013 Author Posted February 16, 2013 local player = guiGridListGetItemText ( playerList, row2, column ) Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Castillo Posted February 16, 2013 Posted February 16, 2013 Funciona? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Plate Posted February 16, 2013 Author Posted February 16, 2013 Si gracias Solid y alex Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Castillo Posted February 16, 2013 Posted February 16, 2013 De nada. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts